I've got a list of towns in a MySQL database, which I currently pull from
the database ... e.g. http://www.local-hotel.com/townsall/AU/
I now want to put a [A] [B] [C] etc menu at the top, which will click to the
start of the towns with that letter using index.html#A .... I am guessing
that the best way would be to simply compare the first letter of the current
town to the first letter of the previous town. However, I would also need to
put in non-clickable menu letter (i.e. there are no towns beginning with Z)
How'd you lot plan this simple task?
Thanks
Nick
the database ... e.g. http://www.local-hotel.com/townsall/AU/
I now want to put a [A] [B] [C] etc menu at the top, which will click to the
start of the towns with that letter using index.html#A .... I am guessing
that the best way would be to simply compare the first letter of the current
town to the first letter of the previous town. However, I would also need to
put in non-clickable menu letter (i.e. there are no towns beginning with Z)
How'd you lot plan this simple task?
Thanks
Nick
Comment