View Single Post
  #11   Spotlight this post!  
Unread 05-07-2007, 10:13
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

I figured out the second part of my last post.

I added where id = $photo into the query. $photo is defined in the URL. index-test.php?link=web&photo=5
PHP Code:
$query  "SELECT id, title, description, path, image, date FROM photos WHERE id = $photo"
That allowed me to view the picture with id = 5.

I'm still stumped on the first part of my last post though.
__________________
Frank Bosak
Collegiate Mentor Association
Team 48 - Delphi E.L.I.T.E.