Group by Howto
| From: | lists at mhess dot qn dot net | Date: | Tue, 13 Nov 2001 03:57:46 +0000 |
| Subject: | Group by Howto | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-74359@lists.php.net to get a copy of this message | ||
I have a database with 2 colums in it
-------------|------|
Place of work| Name |
-------------|------|
I want to print out a listing of peoples name by the place their work from
a php script
so
Place 1
person a
person b
person c
Place 2
person d
Place 3
person F
person G
This has to be easy to do can anyone point me in the right direction...I
understand I have to use the group by clause I just don't know how to get
PHP to sort it
Michael