Re: [PHP] Store data in array

2002-03-18 Thread Andrey Hristov
]> To: "Andrey Hristov" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Monday, March 18, 2002 1:24 PM Subject: Re: [PHP] Store data in array > > > On Mon, 18 Mar 2002, Andrey Hristov wrote: > > AH>If it is possible do the sorting in the SQL statem

RE: [PHP] Store data in array

2002-03-18 Thread Balaji Ankem
OTECTED] Subject: Re: [PHP] Store data in array On Mon, 18 Mar 2002, Andrey Hristov wrote: AH>If it is possible do the sorting in the SQL statement by using ORDER AH>BY. SQL sorting is much faster than in PHP. However I have gone through that manual alreadybut i need to sort

Re: [PHP] Store data in array

2002-03-18 Thread Uma Shankari T.
On Mon, 18 Mar 2002, Andrey Hristov wrote: AH>If it is possible do the sorting in the SQL statement by using ORDER BY. SQL sorting is much faster than in PHP. AH>However I have gone through that manual alreadybut i need to sort by php sorting. AH>while ($row= mysql_fetch_assoc($res)){ $r

Re: [PHP] Store data in array

2002-03-18 Thread Andrey Hristov
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 Hr