php - Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE -
php - Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE -
i might have syntax error or don't see nothing.
<select id="cd" name="cd"> <?php while($row=mysql_fetch_array($cdresult)) { echo "('<option value='$row['poblacion']'></option >'.'<br />)"; } mysql_close($link); ?> </select>
on echo line, have error :
[error] [client] php parse error: syntax error, unexpected t_encapsed_and_whitespace, expecting t_string or t_variable or t_num_string in /var/www/slimtest/views/nuevo.php on line 89
maybe can help, because don't see error d"=
this should work:
<select id="cd" name="cd"> <?php while($row=mysql_fetch_array($cdresult)) { echo "<option value=".$row['poblacion']."></option><br/>"; } mysql_close($link); ?> </select>
php html compiler-errors syntax-error whitespace
Comments
Post a Comment