Image Thumbnails & Downloading Them

amitash91

New Member
I have the following code for creating thumbnails of the images in the database automatically when the are uploaded.\[code\]<?phpinclude('config.php');$result = mysql_query("SELECT * FROM photos where caption='cars'");while($row = mysql_fetch_array($result)){ echo '<div id="imagelist">'; echo '<p><img src="'.$row['location'].'"></p>'; echo '</div>';}?>\[/code\]Now whenever I click an image in the gallery I want it to open the image in a new tab and give me an option to download, I want the download code which will take in the photo id from the database and then give me the option to download that image only how to do it.
 
Back
Top