Jump to content

Displaying images from a folder PHP


Spray62

Recommended Posts

Hi,

 

I've been trying to display a group of images on a webpage that are saved in a folder. The directory of where the images are stored is

 

images/gallery/flowers/

 

I'm stuck on what the small segment of PHP code would be to do this.

 

Help would be greatly appreciated and thank you!  :happy-04:

Link to comment
https://forums.phpfreaks.com/topic/279935-displaying-images-from-a-folder-php/
Share on other sites

There is no db involved and as for the code I'm stuck on where to start with it. I briefly tried some GLOB code that I do not have on me right now and the images displayed but displayed all ten images horizontal across the page when It would need to be three horizontal then another 3 underneath etc. Any ideas on how to break them up so its three on each line? Or even the code needed to display them images using GLOB in general?  :happy-04:  Thanks

 

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.