Page 1 of 1

PHP Array to Load Images into Table

Posted: Sat Mar 18, 2006 8:15 pm
by toshtrent
Hi there.

I am trying to load a table 3 columns wide and endless number of rows from an array. I will be loading the filename from the database and somehow inserting it into the cell.

Example of Table
----------------------------------------------
|       x        |        x        |        x        |
----------------------------------------------
|        x        |        x        |        x        |
----------------------------------------------
|        x        |        x        |        x        |
----------------------------------------------

X is the variable holding the file name of the image. The loop will step through the array outputting each filename to a seperate cell in order. Starting with cell 1 to 2 to 3 and so on. I am stuck on which approach to take with this, and would be extremely grateful if someone could assist me.

$aryActivityList[]("strActivityName" => "Free Running", "strActivityImagePath" => "freerunning.jpg");

How can i loop through the array until all images have been outputted into the table?

Posted: Sat Mar 18, 2006 8:22 pm
by feyd
Useful Posts wrote:• Multi-column formatted output: PHP & MySQL formatting problem
• Multi-column formatted output 2: Create Member Directory with Alphabetical Listings

Posted: Sun Mar 19, 2006 6:25 am
by toshtrent
feyd wrote:
Useful Posts wrote:• Multi-column formatted output: PHP & MySQL formatting problem
• Multi-column formatted output 2: Create Member Directory with Alphabetical Listings
Kool thank you for finding this for me, seems to be exactly what i'm looking for. I'll try and implement that now. Thanks again!
Tosh