Re: Session variable in query

From: Date: Fri, 16 Aug 2002 16:18:34 +0000
Subject: Re: Session variable in query
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-112979@lists.php.net to get a copy of this message
not entirely sure what you mean, but perhaps this is what you're after??? $sql = "SELECT * FROM tablename WHERE username='{$_SESSION['userid']}'"; Justin French on 17/08/02 2:08 AM, Christian Ista (christian.ista@teledisnet.be) wrote: > Hello, > > Is it possible to use a session variable in a query (mysql_query) > without passé by an temp variable ? > > Bye > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php >

« previous php.general (#112979) next »