Jump to content
Larry Ullman's Book Forums

Ch 11 Making Phot Visible As A Clickable Link


Recommended Posts

At the moment the routine in the book, allows us to see the photos in the folder, and these are the photo filename, shown as a text link, which we click on to open the image.

 

What I would like to do is see these photos as a thumbnail, where I can click them to see the full size image.

 

Thanks

Link to comment
Share on other sites

Use the PHP scandir function to scan a directory, pull out the files you want, and then use img tags surrounded by a tags to create images that can open another page when they're clicked on.

 

After that, it's using CSS and whatnot to customize the page as you desire.

  • Upvote 1
Link to comment
Share on other sites

 Share

×
×
  • Create New...