Jump to content

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

 

 
This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.