i have a problem , each time i try to do select and fetch this error show
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'add' at line 1
<?php
mysql_connect("localhost", "root", "123") or die() ;
mysql_select_db("boom") or die() ;
//Retrieves data from MySQL
$select= "select * from add" ;
$data = mysql_query($select) or die();
//Puts it into an array
while($info = mysql_fetch_array( $data ))
{
echo "<img src=images/".$info['photo'] .">";
}
//Outputs the image and other data
?>
what is the problem here ?