Pulling data into an array and sorting
| From: | rdkurth at starband dot net | Date: | Sun, 31 Mar 2002 00:21:48 +0000 |
| Subject: | Pulling data into an array and sorting | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-90827@lists.php.net to get a copy of this message | ||
I need to pull data into and array from a mysql database and then sort
that data according to one of the fields and then print it to the
screen.
Hear is an example of the data in the database
username Pnumber sec2 sec3 sec4 sec5 sec6
Gary 123.345.122 YES YES NO YES YES
Fred 123.345.123 YES YES NO YES YES
Jone 123.345.124 YES YES YES NO YES
Tom 123.345.124 YES YES NO YES YES
Frank 123.345.123 YES YES NO YES YES
If you will notice the Pnumber for some are the same and some are
different. I what to be able to sort on this number and then when they
are printed they would be printed according to this number in groups
--
Best regards,
rdkurth mailto:rdkurth@starband.net