]>
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
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
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
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
4 matches
Mail list logo