PHP Array to Load Images into Table
Posted: Sat Mar 18, 2006 8:15 pm
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?
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?