note 26326 rejected from ref.session by betz
| From: | betz@php.net | Date: | Sat, 26 Oct 2002 16:20:26 +0000 |
| Subject: | note 26326 rejected from ref.session by betz | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-38590@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();