开发者

Php Error On Outputting DB Values

开发者 https://www.devze.com 2023-03-04 21:43 出处:网络
{echo \"<option value=\".\"$row3[\'cID\']>\" .$row3[\'p开发者_C百科refix\'].\" \".$row3[\'code\'].\"</option>\";}
{echo "<option value="."$row3['cID']>" .$row3['p开发者_C百科refix']." ".$row3['code']."</option>";}

Gives me the error:

Syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING

For some reason the editor isn't coming up.


Try

echo "<option value=". $row3['cID'] . ">" .$row3['prefix']." ".$row3['code']."</option>";


echo "<option value="."$row3['cID']>" .$row3['prefix']." ".

Switch the double quote and dot at the end.

0

精彩评论

暂无评论...
验证码 换一张
取 消