hey i'm working on a shopping cart..but have hit a snag whit this statement..
function modify_quantity($table, $session, $itemid, $quantity)
{
$sql = "UPDATE $table SET quantity='$quantity' WHERE
session='$session'
AND itemid='$itemid'";
mysql_query("$sql");
}
if there is a value in the db field "quantity" then after the statement is
executed it is set to "0"
here is my calling code.
if ($action == "uq" || $action == "Update" ){
modify_quantity($table,$session,$itemid,$quanity);
}
and the requested url.
http://www.harborfresh.com/retail/cart.php?itemid=21591&quantity=5&action=Update
any ideas?
~kurth
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]