Hi guys,
I'm just wondering why this
$query = "SELECT * FROM slides WHERE slide_id = $_SESSION['currentslide'];"
doesn't work. I thought the double quotes were supposed to enumerate any variables inside them, i.e. $_SESSION['currentslide']. Instead I get the "Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING" error.
Its just a trivial thing, as its annoying concatenating all the parts of a mysql query together!
Thanks in advance.