ob_start();
$area = "onlinestore";
include("../includes/header.php");
$cookieID = mysqlquerycleaner($_COOKIE["cookieID"]);
// Get any previous billing info if they match a cookie
$sql = "SELECT * FROM orders_customer WHERE cookieID = '$cookieID'";
$cust = mysql_query($sql);
if(mysql_num_rows($cust) == 0) {
header("Location:cart.php");
}
else {
$row = mysql_fetch_array($cust);
$customerID = $row["ID"];
$bill_name = $row["bill_name"];
$bill_address = $row["bill_address"];
$bill_city = $row["bill_city"];
$bill_state = $row["bill_state"];
$bill_zip = $row["bill_zip"];
$phone = $row["phone"];
$email = $row["email"];
}
mysql_free_result($cust);
// Get the order ID
$sql = "SELECT ID FROM orders_data WHERE customerID = '$customerID' AND completed IS NULL";
$order = mysql_query($sql);
if(mysql_num_rows($order) == 0) {
header("Location:cart.php");
}
else {
$row = mysql_fetch_array($order);
$orderID = $row["ID"];
}
mysql_free_result($order);
?>
|
ONLINE STORE
|
|
|
Your Billing Information |
|
|
Notice: Undefined variable: thawtecert in /var/www/store/checkout.php on line 206
|
|
|
include("../includes/footer.php");
?>