Looping Displayed Files From a Directory

Results 1 to 2 of 2

Thread: Looping Displayed Files From a Directory

  1. #1
    Join Date
    Dec 1969

    Default Looping Displayed Files From a Directory

    How do I setup a table where it contains ten (10) columns and as many rows as it takes to display all the files (ie. gifs & jpgs) in a given directory? Please email me with your help: losbear@yahoo.com - thanks all!

  2. #2
    Join Date
    Dec 1969

    Default Ask here, answer here...

    The whole point of a public forum like this is that you might not be the only one interested in the answer to a question!<BR><BR>************************<BR><BR>* IF* you don&#039;t mind that the files are displayed *across* the page rather than down, it&#039;s dirt easy.<BR><BR>That is, they will come out like this (using just 3 columns for example purposes):<BR><BR>aaa.jpg bbb.jpg ccc.jpg<BR>ddd.jpg eee.jpg fff.jpg<BR>... etc. ...<BR><BR>But if you mean you want<BR><BR>aaa.jpg ddd.jpg ggg.jpg<BR>bbb.jpg eee.jpg hhh.jpg<BR>ccc.jpg fff.jpg &#060;blank&#062;<BR><BR>Then that&#039;s a lot harder. You&#039;ll have to pull all the files into an array, first, and then display the page from the array, processing them in the "interleaved" order.<BR><BR>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts