Jump to content

Archived

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

me1000

Display images in table

Recommended Posts

ok, first off I have each of my images in a category, (a directory named) named 1 through 7 then in each of those directories there is few more directories (subcategories) inside of the sub cats are 3 files. every file is named exactly the same thing "wallpaper_800.jpg" , "wallpaper_1024.jpg", and "wallpaper_thumb.jpg".

I want to have a php script that gets these files, and displays all the wallpaper_thumb.jpg from a defined category, under the thumbnail will be a link to the 800 x 600 version and a link to the 1024 x 768 version.

Is there a loop i can use to do this?

Thanks,

Share this post


Link to post
Share on other sites
Yes there is. Check out the the post in the new forum section "FAQ/Code Snippet Repository".

[a href=\"http://www.phpfreaks.com/forums/index.php?showtopic=95426\" target=\"_blank\"]http://www.phpfreaks.com/forums/index.php?showtopic=95426[/a]

Share this post


Link to post
Share on other sites
thanks,

ok, now that I know how to display the results in table, how to I grab all the files with a certain file name? from the directorys?

Share this post


Link to post
Share on other sites

×

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.