function redirect($s){
echo '';
}
ob_start();
if($_SESSION["custID"] == "")
{
?>
}
else
{
$strSQL = "SELECT Email from customers where custID =" . $_SESSION["custID"];
$tmprs=mysql_query($strSQL) or die("cannot select Email".mysql_error());
$rs=mysql_fetch_array($tmprs);
$strSQL = "INSERT INTO favouriteproduct (FPId,Order_Email,Cust_ID) values('" . $_REQUEST["prod"] . "','" . $rs["Email"] . "'," . $_SESSION["custID"] . ")";
mysql_query($strSQL) or die("cannot add favourite product".mysql_error());
redirect($_SERVER['HTTP_REFERER']);
}
?>
B. A. Freeman
Home | Galleries |
Contact Us |
Guest Book
Follow me on by blog for all the latest news!
Site Design © Analytica Business Systems, Inc.
Site Content © Barbara A. Freeman
All Rights Reserved