In your PHP:
On every click collect two variables:
$by and $order
then, call for this query:
Select field from table where this=that order by $by $order;
Make sure both variables have their default values in case there was
nothing selected.
You don't really need a function for this, just a few variables preset
before calling mySQL.
Do pobachennya,
Maxim Maletsky
Founder, Chief Developer
PHPBeginner.com (Where PHP Begins)
[EMAIL PROTECTED]
www.phpbeginner.com
> -----Original Message-----
> From: Vladislav Kulchitski [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, April 10, 2002 3:49 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP] Dealing with Query String
>
>
> Hi,
>
> I need some help with query string. Basically what I am doing is I am
> sorting my table, much like you sort columns in OUTLOOK EXPRESS for
> instance with a little arrow...
>
>
http://www.kulchitski.com/btl/btl.php?lang=eng&page=talkroom_show&sort=s
> ex
>
> So all I need a function that will grab this query and will change
sort=
> and another new variable (desc/asc) and will return the same string
but
> with new values for certain variables... I ran across some function
like
> this before when Ididn't need it, but just now when I need it badly -
> can't seem to be able to find it. Hope someone out there can help.
>
> Thank you much.
> Vlad
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php