开发者

Php Error On Outputting DB Values

{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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜