|
On a page I have links, in the form of banners, to other sites, and they have mine. They're all stored in a database and there is no problem displaying them. However, there's starting to get rather many of them and I want people to be able to view only a few of them at a time by selecting a letter, and then only be shown those of which title starts with that letter.
How could I write a sql query to select and count the number of titles beginning with each letter? That is, if there is 3 titles starting with A, none with B, 1 with C and 5 with D, how would I write to select A-3, C-1, D-5?
And what do you think would be best, to only display the letters A, C and D (as links) or to display all letters but not making links out of the other ones?
Thanks
__________________
34343639363436653237373432303635373837303635363337 34323037343638363137343263323036343639363432303739 366637353366
|