Grouping

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



OK. I know I did this a LONG time ago but I don't remember how I did it. Thus, my post.

I have a list of last names from a MySQL database. I need to display them grouped by the first letter of their last names and insert a separator on display. Similar to a phone book. So it looks like;


A
___
Adams
Apple
Army

B
__
Banjo
Bank
Bark

C
__
Captain
Car



Is there a way without jumping through too many hoops?

Thanks for any input you can give.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux