Can not figure outsyntax error, unexpected T_ENCAPSED_AND_WHITESPACE,
expecting T_STRING or T_VARIABLE or T_NUM_STRING
I am querying my database and recordID is an int. I have this line of code
when I echo out the value of $content['recordID'] it prints out a numeric
value, but when I put it in here I get this error:
syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or
T_VARIABLE or T_NUM_STRING.
But if I replace $content['recordID'] with a numeric value it works properly
$sqlCommentAmount = "SELECT * FROM `info` WHERE `recordID` =
$content['recordID']";
No comments:
Post a Comment