Re: Row order
| From: | Dan Fitzpatrick | Date: | Thu, 12 Jul 2001 08:04:05 +0000 |
| Subject: | Re: Row order | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-10331@lists.php.net to get a copy of this message | ||
Stefan,
Depending on your load, you could save the results in a database table,
make the table name a session variable, and just have the sorting column
names be fields in the saved table.
CREATE TABLE Q1234 AS SELECT ...;
You can also put all the variables in a variable then put the new
variable in the <a tags like this:
$query_vars = "field1=a&field2=b&field3=c...";
<a href="file.php?<?=$query_vars?>&sort=field4">Field 4</a>
Hope this helps.
Dan