View Single Post
  #10   Spotlight this post!  
Unread 04-07-2007, 12:20
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)
Re: Dynamic Tables in PHP

Seems I've run into a small snag. The counter for the gallery view leaves out a photo. It counts 1 to 5 then skips 6 and goes to 7. Any ideas on why or how I can fix that.
PHP Code:
$column_limit 5//change to however many columns you want
$column_counter 0;//column counter

if($column_counter == $column_limit
         {
    echo 
'</tr><tr>'//End current row, and start a new row. 
        
$column_counter 0//reset the column counter
      

Also,
I want to create a page that shows only one picture. How do I call that one picture with a URL string. Ex. index.php?photo=25
I've tried to think that out all night, and I've gotten nowhere
__________________
Frank Bosak
Collegiate Mentor Association
Team 48 - Delphi E.L.I.T.E.

Last edited by FRANK(WGH) : 04-07-2007 at 12:23. Reason: Screwed up the code and want to add something.