Re: Order DB through url toggle

From: Date: Fri, 08 Nov 2002 16:33:02 +0000
Subject: Re: Order DB through url toggle
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-23148@lists.php.net to get a copy of this message
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. */

« previous php.db (#23148) next »