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

Popular posts from this blog

java - Plugin org.apache.maven.plugins:maven-install-plugin:2.4 or one of its dependencies could not be resolved -

Round ImageView Android -

How can I utilize Yahoo Weather API in android -