done; $TopAnim = 2; include("../temp-head.php"); echo <<
done; include("../inc/settings.php"); $cx = odbc_connect($DB_Database, $DB_User, $DB_Pass, ""); if (isset($_COOKIE['rqb'])) { foreach ($_COOKIE['rqb'] as $name => $value) { $URL = "http://secure.todaysebiz.com/services/cart/addItem.asp"; $discountcode=$value; //echo "$name : $value

\n"; } } else { $URL = "../treatments_code.php"; $discountcode="0"; } echo <<View Shopping Cart

done; $additionaltext = ""; $additionaltext2 = ""; $discountrate=1; if ($discountcode != "0") { $query = "Select code, discount from company where code='$discountcode'"; $cur = odbc_exec($cx, $query); while(odbc_fetch_row($cur)) { $code=odbc_result($cur,1); $discount=odbc_result($cur,2); $additionaltext = " - Price Discounted $discount% by discount code $code"; $additionaltext2 = "

Price Discounted $discount% by discount code $code"; if ($discount) { $discountrate=1 - $discount/100; } } } $query = "Select * from products where $MoreWhere"; $cur = odbc_exec($cx, $query); while(odbc_fetch_row($cur)) { $id=odbc_result($cur,1); $item=odbc_result($cur,2); $description=odbc_result($cur,3); $price=odbc_result($cur,4); $oldprice = number_format($price, 2); if ($discountrate) { $price = $price * $discountrate; } $price=number_format($price, 2); $image=odbc_result($cur,5); $description = ereg_replace("\n\r", "

", $description); $description = ereg_replace($oldprice, $price, $description); echo <<

done; } echo <<

$item

$item

$description$additionaltext2

RELATED PRODUCTS
TWILIGHT NIGHT CREAM COOLING EYE CONTOUR GEL EUPHORIC ALOE MASQUE BRIGHTENING FACIAL POLISH
done; include("../temp-footer.php"); ?>