Rustage Posted July 26, 2009 Share Posted July 26, 2009 Sorry about the lame title, im not entirely sure what the name of what im trying to do is. Im wondering if anyone can point me in the right direction of what sort of tutorial I should be looking for.What i'd like to do is for my page to load certain data from a database, for example..http://www.domain.com/index.php?id=1 - Would lead me to my "index.php" page, but load the data from my database for the row with the ID '1'.Im sure i've done it before, and remember it being pretty straight forward but as I havent used PHP in years im pretty much starting from scratch,Thanks very much, Rustage. Link to comment Share on other sites More sharing options...
boen_robot Posted July 26, 2009 Share Posted July 26, 2009 $_GET['id'] will give you the value of the "id" query string variable. You can use that value when creating the SQL statement for the database. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.