Arrays and Alphabetical order
| From: | Don Mc Nair | Date: | Tue, 22 Jul 2003 16:40:34 +0000 |
| Subject: | Arrays and Alphabetical order | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-156263@lists.php.net to get a copy of this message | ||
Hi folks
I am trying to print out a table of elements in alphabetical order. I have
an SQL query which sorts out the data in order and am using 'while ($info
=(mysql_fetch_row...etc)) to read the data array. I need it to echo out a
table with all the A's first, then a blank line, then all the B's, a blank
line and so on. I could write 26 different queries, one for each letter of
the alphabet, but surely there is a tidier way.
Any help is appreciated.
Don
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.502 / Virus Database: 300 - Release Date: 18/07/2003