A person gets the error:
Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE
from the following code:
$query = "SELECT story,video FROM `storycodes` WHERE `code` = '$code"';
closed as too localized by John Conde, SERPRO, N.B., tereško, DaveRandom Apr 26 '13 at 8:17This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question. |
|||||||||||||
|
This error code results from placing the quotes in the wrong order. In this code it says '$code"' when it should be '$code'" The fixed code would look like this:
|
|||||||||||||||||||||
|