Message-ID: <7mYKa.8216$Vo.57615461@news-text.cableinet.net> from elyob
contained the following:
[color=blue]
>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)[/color]
I did a similar think by feeding values from a drop down box into a query.
http://www.ckdog.co.uk/php/abstracts.php
To display all towns beginning with a certain letter, assign the output of
the drop down box to variable $letter and do this:
SELECT field1, feld2,townetc FROM tbltable WHERE town LIKE'$letter%'
$order";
The variable $order is there so that you can change how the results are
displayed. You may want to order the results on a different field, say a
date field or something.
--
Geoff Berrow
It's only Usenet, no one dies.
My opinions, not the committee's, mine.
Simple RFDs
http://www.ckdog.co.uk/rfdmaker/