Re: Quotes in querys

From: Date: Wed, 14 Jan 2009 16:21:28 +0000
Subject: Re: Quotes in querys
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-286321@lists.php.net to get a copy of this message
I am trying to get the following to work: "Select Netid from Users where Netid = '$_SESSION[phpCAS][user]'" Netid is a string type. No matter where of if I put the quotes, I still get array[phpCAS] not the value. Maybe try this :
$q = 'Select Netid from Users where Netid = "' . $_SESSION[phpCAS][user] . '"';

« previous php.general (#286321) next »