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.
精彩评论