Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
一个人得到错误:
Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE
从以下代码:
$query = "SELECT story,video FROM `storycodes` WHERE `code` = '$code"';
此错误代码是由于引号的顺序错误造成的。在这段代码中,当它应该是 '$code' 时它会显示 '$code"'"
固定代码如下所示:
$query = "SELECT story,video FROM `storycodes` WHERE `code` = '$code'"; ^^--here