Image thumbnail view for viewing images from mysqly database -
i store image names in database , actual images saved local directory in computer. images fecthed database , displayed in gallery on php page. clicking 1 of these images open new page preview of selected image.
what want when selected image in details page clicked, should pop in original size.
i found simple image thumbnail viewer script @ dynamicdrive.com link image follows:
<a href="17.jpg"" rel="thumbnail"><img src="17.jpg" style="width: 50px; height: 50px" /></a>
however, want utilize on images names stored in database. tried next nil displayed on page:
<a href=<?php echo '<img src="./images/'.$cfilename.'" />'; ?>"" rel="thumbnail"><?php echo '<img src="./images/'.$cfilename.'" width="300" height="400" />'; ?></a>
i appreciate advice.
joseph
image
No comments:
Post a Comment