View Single Post
  #1   Spotlight this post!  
Unread 23-06-2007, 16:02
FRANK(WGH) FRANK(WGH) is offline
Webmaster - delphielite.com
AKA: Frank
FRC #0048 (Delphi E.L.I.T.E.)
Team Role: Webmaster
 
Join Date: Nov 2001
Rookie Year: 2001
Location: Warren, OHIO
Posts: 88
FRANK(WGH) will become famous soon enough
Send a message via AIM to FRANK(WGH)
Dynamic Tables in PHP

This may seem elementary to some, but I'm just learning php and I need some help.
I'm creating a Photo Gallery for a website and I want to be able to make a standard template and let php handle the rest.
Right now, I'm using an array to hold all of the information needed for the gallery including the filenames of the images.
PHP Code:
$show = array ( "TSO" => array(    "title" => "Trans-Siberian Orchestra",
                                        
"folder" => "TSO/",
                                        
"date" => "11/13/05",
                                        
"img1" => "PB130055.jpg",
                                        
"img2" => "PB130069.jpg",
                                        
"img3" => "PB130124.jpg",
                                        
"img4" => "PB133303.jpg",
                                        ), 
); 
Then I create a static table with 4 columns and call it a day. I'd like the ability specify the number of images I have and let php create the table.

Here's an example of what I've got so far. http://www.rockshotzinc.com/gallery-...k=TSO&pic=img1

Can anyone help me out.
__________________
Frank Bosak
Collegiate Mentor Association
Team 48 - Delphi E.L.I.T.E.