How do i pass on a variable through php files
I.e i have linked to another php document and i need to use the variable $AuctionID from the original document
how do i do that, the new page has this on
[code=php]
<?PHP
//conn
$conn = mysql_connect(“localhost”, “k0m0d0”, “ragnarok”) or die(mysql_error());
//select db
mysql_select_db(“ebay”,$conn) or die(mysql_error());
//statement
$sql = “SELECT Source FROM auctions WHERE ID = ‘$AuctionID'”;
//if script
$result = mysql_query($sql, $conn) or die(mysql_error());
if (mysql_num_rows($result) ==1) {
//fetch results
$row = mysql_fetch_array($result);
//extract is into the echo
extract($row);
echo “$Source”;
};
?>