Re: Order DB through url toggle

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Saturday 09 November 2002 00:26, Paul Ihrig wrote:
> well i tried that..
>
> but it out puts the right number.
> but it is not taking that var to switch ACS or DESC...
>
> http://localhost/php/default2.php?orderBy=priLastName&dir=0
> http://localhost/php/default2.php?orderBy=priLastName&dir=1
>
> /* here we set up out order by clause */
> $orderBy = 'priLastName';
> if (isset($HTTP_GET_VARS['orderBy'])) {
>   $orderBy = $HTTP_GET_VARS['orderBy'];
> }
> /* and the desc asc */
> if $HTTP_GET_VARS['dir'] = 0 {

Try:

if $HTTP_GET_VARS['dir'] == 0 {

-- 
Jason Wong -> Gremlins Associates -> www.gremlins.com.hk
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *


/*
Thank God a million billion times you live in Texas.
*/


-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux