RES: [PHP] Quotes in querys

From: Date: Wed, 14 Jan 2009 16:21:14 +0000
Subject: RES: [PHP] Quotes in querys
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-286320@lists.php.net to get a copy of this message
Try session_start(); $sql = "SELECT Netid FROM User WHERE Netid='".$_SESSION['phpCAS']['user']."'"; -----Mensagem original----- De: MikeP [mailto:mpeloso@princeton.edu] Enviada em: quarta-feira, 14 de janeiro de 2009 14:17 Para: php-general@lists.php.net Assunto: [PHP] 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

« previous php.general (#286320) next »