Page 1 of 1
How to go to a title id page
Posted: Fri Aug 08, 2008 9:25 pm
by CoolAsCarlito
I have a title histories page that stores all my titles and when you click on a pic of one of the titles I want it to go to titlehistory.php?id=1. I have it linked correctly so that it shows the correct link but I'm still lost how it will actually go to that titles page info and what not.
Re: How to go to a title id page
Posted: Sat Aug 09, 2008 2:49 am
by desmi
Please post your code.. but you need to use method GET to load the correct id:
Code: Select all
<?php
$idyouwant = $_GET['id'];
//you put this on that titlehistory page, and after that you play with your variable, lets say eg. :
echo $idyouwant;
// or
mysql_query("SELECT * FROM table WHERE id = '$id'") or die(mysql_error());