Dear Sirs

i put up a image in database and i want when a user click on 
download link the particular image start to download. I have stored 
100 images in mysql and below is the sample mysql query i write and 
its work fine .

INSERT INTO `mobile`.`stuff` (`prod_id`, `cat_id`, `image_name`, 
`image_path`) 
VALUES (NULL, '3', 'Impossible ', 'impossible.jpg');

"please note that prod_id is auto increment."

and here is the php code how i called my all images with the help of 
while loop from mysql.

echo '<td>' . '<img src="images/' . $row['image_path'] . '" 
border="0">' . 
'<br>' . $row['image_name'] . '</a> <br />' . '<a href="images/?
id ">  Download  </a>' . '</td>';

i want to start download the particular image when i click on the 
Download link. Please tell me the code how i can download the image 
when i click on Download link.

A screent shot with the name of imagedownlod is attached which can 
clarify what exactly i want.

regards
Azhar

Reply via email to