RES: Quotes in querys

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

 



Try

session_start();

$sql = "SELECT Netid FROM User WHERE
Netid='".$_SESSION['phpCAS']['user']."'";


-----Mensagem original-----
De: MikeP [mailto:mpeloso@xxxxxxxxxxxxx] 
Enviada em: quarta-feira, 14 de janeiro de 2009 14:17
Para: php-general@xxxxxxxxxxxxx
Assunto:  Quotes in querys

Hello,
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.
If there is anything I still have trouble with after all these years its 
quoting variables.
Help?
Thanks
Mike 



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


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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux