Image display from DB file path with thumbnail.....need help pls

Hello,

I have images file path in my table and images are store in a location of my server. I have total 3 image column image1, image2 and image3 in my table which containing image file path. I want to retrieve these images from my db and show on page in a way that the 1st image will displayed as full size and 2nd and 3rd image will displayed as thumbnail just under the 1st image and if anyone click on the thumbnail will see full size image. Its very similar like ecommerce website product’s image display.

I am really not sure how can i do it. anyone can help me please?

echo '<img src="' . $db_row['image1'] .'">';
echo '<img src="' . $db_row['image2'] .'">';
echo '<img src="' . $db_row['image3'] .'">';

Thumbnails and other features are left as a excersise for you. Swapping images however from thumbnail to full will require the use of javascript. But if you have some existing code already and have done some work then maybe we can be more help. Or you can hire some one…

Hi logic_earth,

thnx for ur reply but i think ur code will only display the images. but i want the 1st image will displayed as full size and 2nd and 3rd image will displayed as thumbnail just under the 1st image and if anyone click on the thumbnail will see full size image.

can u pls tell me how can i do that or any idea? thanks.

What you want is not PHP but HTML + CSS and Javascript.
If you want me to code it all for you…I don’t work for free.

So either you are going have to hire someone…of if some here is feeling generous (not me) they might do it all for you. I on the other hand, will only help you solve problems of existing code you have already done.