Global-Science Press Order Form echo "(Order ID: ".date ("ymd").$orderid.")"; ?>
echo "Order date: ".date ("M d,Y h:i:s");
?>
| Code |
Name |
Price * |
Quantity |
$itemCount = count($_COOKIE["cart"]);
$totalPrice = 0;
if( $itemCount != 0 ) {
$sql = "(";
$i = 0;
while (list($key, $val) = each($_COOKIE["cart"])) {
//echo "$key has a value of $val ";
$sql .= $key;
if( $i++ != $itemCount-1 )
$sql .= ",";
}
$sql .= ")";
$sql = "SELECT * FROM `books` where `id` in ".$sql;
//echo $sql;
$result = mysql_query( $sql, $conn) or die(mysql_error());
while( $row = mysql_fetch_array($result) ) {
?>
| echo $row["code"]; ?> |
echo $row["title"]; ?> |
US$
echo $row["price"];
$totalPrice += $row["price"]*$_COOKIE["cart"][$row["id"]];
?>
|
echo $_COOKIE["cart"][$row["id"]]; ?> |
} // while( $row = mysql_fetch_array($result) )
mysql_free_result( $result );
CloseDatabase();
} // if( $itemCount != 0 )
?>
Total Price* US$ echo $totalPrice; ?>
(*Shipping charge is included.)
- Hong Kong dollars or US funds only (1US$=7.8HK$).
- Check/International Money Order/Official Purchase Order Form, payable to Global Science Press Limited. Specify the destination of shipment if different from below:
Your Name: ________________________________________________________________
YourAddress: ________________________________________________________________
________________________________________________________________
________________________________________________________________
Email: ________________________________________________________________
Fax: ________________________________________________________________
Signature: ____________________
- Checks should be made payable to “Global Science Press Limited”
- Send your orders and/or payment to
Global Science Press, Room 2303, OfficeTower, ConventionPlaza, 1 Harbour Road, Wanchai,
Hong Kong Fax: (852)2630 8821
|