I am new to the PHP Programming. I retrieve image dynamically from the folder and fetch into the webpage.Now, I want to know how will I give link to the image to redirect to the other page? The most important thing is, I retrieve image dynamically not statically.
This is the code I use to retrieve the image:
$data = mysql_query("SELECT image FROM product1");
$file_path = 'image/';
while($row = mysql_fetch_assoc( $data )) {
$src=$file_path.$row['image'];
echo "<img align='left' src=".$src." height='430' width='466' > ";
}