Re: Re-Sorting query results
From: Justin Wyer (justin_at_isogo.co.za)
Date: 05/19/04
- Next message: Craig: "Re: A Trigger ?"
- Previous message: Justin Wyer: "Re: copying arrays"
- In reply to: Steve: "Re-Sorting query results"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Wed, 19 May 2004 13:03:50 +0200
Steve wrote:
> On most websites that let you search the site, the results are
> returned in many rows of data. By clicking on the column
> heading you are able to re-sort the data based on that column.
>
> How's the best way to accomplish this via PHP? Would clicking
> the link of the column heading would you perform another query
> with an ORDER BY clause, or somehow sort the data that was
> returned from the original query. A code snippet would be
> great.
>
> TIA - Steve
Well since the database is faster than PHP i would say run another query
with a different ORDER BY, sorting large multidimensional arrays in PHP
will generate much more overhead.
- Next message: Craig: "Re: A Trigger ?"
- Previous message: Justin Wyer: "Re: copying arrays"
- In reply to: Steve: "Re-Sorting query results"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
Loading