note 26326 added to ref.session
| From: | Higor at rack1 dot php dot net | Date: | Sat, 26 Oct 2002 16:09:55 +0000 |
| Subject: | note 26326 added to ref.session | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-38589@lists.php.net to get a copy of this message | ||
When i try to do this query in my database (MySQL):
$sql = mysql_query("SELECT x FROM "table" WHERE x =
'$_SESSION['x']'") or die ("No table!");
the result is:
Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or
T_NUM_STRING in "myfile.php" on line [number]
i have already put the session_start();
--
http://www.php.net/manual/en/ref.session.php
http://master.php.net/manage/user-notes.php?action=edit+26326
http://master.php.net/manage/user-notes.php?action=delete+26326
http://master.php.net/manage/user-notes.php?action=reject+26326