Mar 20, 2005 #1 meeble3 Programmer Nov 8, 2004 52 GB how do you retrieve it on the next page. I want to do $result = mysql_query("SELECT * from centres where id = '$theid'",$db); Where $theid is brought from the previous page Thanks
how do you retrieve it on the next page. I want to do $result = mysql_query("SELECT * from centres where id = '$theid'",$db); Where $theid is brought from the previous page Thanks
Mar 20, 2005 #2 kenrbnsn Technical User Jun 7, 2002 606 US Variable via get are gotten via the Super Global array $_GET Upvote 0 Downvote
Mar 20, 2005 #3 Vragabond Programmer Jul 23, 2003 5,100 AT Code: $result = mysql_query("SELECT * from centres where id = " . $_GET['theid'],$db); It will be in the $_GET superglobal. If id is an integer you should omit the quotes around the value, if it is a string, you should keep the quotes. Upvote 0 Downvote
Code: $result = mysql_query("SELECT * from centres where id = " . $_GET['theid'],$db); It will be in the $_GET superglobal. If id is an integer you should omit the quotes around the value, if it is a string, you should keep the quotes.