php - Getting a syntax error mysql_feth_array -
i getting syntax error on line of code
($info = mysql_fetch_array( $data )){ echo"<img src= images/ ".$info['photo'] ." <br>";
and have no idea why? appreciated.
try like
if ($info = mysql_fetch_array( $data )) { echo"<img src= 'images/ ".$info['photo'] ."'> <br>"; }
you have missed
1) closing image tag
2) need put image url in quotes.
Comments
Post a Comment