I have nearly finishing my shopping cart, the information is extracted and placed in an orderline table, but how do i remove all the information in the cart?
I tryed
if ($insert)
{
$removecard = mysql_query (delete from cuscart where custId = $customerid");
echo "your order has been placed";
}
else {
echo "there has been an error");
}
?>
but it doesnt seem to work, page doesnt display, i want to remove rows which have been created which contain the customer number of the current customer.