RE: [PEAR] Sortable tables
| From: | LIMBOURG Arnaud | Date: | Mon, 17 Dec 2001 07:46:28 +0000 |
| Subject: | RE: [PEAR] Sortable tables | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-609@lists.php.net to get a copy of this message | ||
It has more to do with your query than with the classes you use.
Pass a parameter to the script which will build the query with the correct
ORDER BY taking the parameter.
Arnaud.
> I'm looking for a re-usable method for creating sortable tables i.e.
>
> Fetch data from DB (Pear DB)
> Create table header with Ascending and Descending links that
> sort the table
> by that column.
> Create the rest of the table.
>
> I am currently using the Pager.php class which is excellent.
> It would be
> great if something could integrate with this, or at least
> work with it.
>
> Unfortunately, I wouldn't know where to start here, and pray
> for the day
> when I can actually start contributing to the effort, but if
> someone has any
> ideas on this, I'd be most grateful.
>
> TIA
>
> Simon H.
>
>
> --
> PEAR General Mailing List (http://pear.php.net/)
> To unsubscribe, e-mail: pear-general-unsubscribe@lists.php.net
> For additional commands, e-mail: pear-general-help@lists.php.net
> To contact the list administrators, e-mail:
> php-list-admin@lists.php.net
>