Jump to content


Photo

Display images in table


  • Please log in to reply
2 replies to this topic

#1 me1000

me1000
  • Members
  • PipPipPip
  • Advanced Member
  • 183 posts

Posted 13 June 2006 - 03:07 PM

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,

#2 freakus_maximus

freakus_maximus
  • Members
  • PipPipPip
  • Advanced Member
  • 177 posts

Posted 13 June 2006 - 03:12 PM

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]

#3 me1000

me1000
  • Members
  • PipPipPip
  • Advanced Member
  • 183 posts

Posted 14 June 2006 - 07:43 PM

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?




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users