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

Reply via email to