Re: Store data in array
| From: | Andrey Hristov | Date: | Mon, 18 Mar 2002 11:04:05 +0000 |
| Subject: | Re: Store data in array | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-88908@lists.php.net to get a copy of this message | ||
If it is possible do the sorting in the SQL statement by using ORDER BY. SQL sorting is much faster
than in PHP.
However
while ($row= mysql_fetch_assoc($res)){ $rows[] = $row; }
Then you have many ways to sort. Look at : sort(), asort(), arsort(), usort(), uasort() etc.
Best regards,
Andrey Hristov
----- Original Message -----
From: "Uma Shankari T." <umashankari@lantana.tenet.res.in>
To: <php-general@lists.php.net>
Sent: Monday, March 18, 2002 12:25 PM
Subject: [PHP] Store data in array
>
>
> Hello,
>
> Anyone can please tell me how to store the row details fetched from
> database to array so that to sort the same array after storing....
>
>
> -Uma
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>