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." <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> 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 > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php