addtocart to integrate Storefront
Posted: Tue Apr 13, 2004 7:24 am
I am working with windows 2000 server using xitami2.5 webserver and php 4.5. using sams -teach yourself php, mysql and apache, i have tried to do addtocart to integrate my storefront with the cart mechanism....
the script requires, i.e. p.415,
$addtocart = "isert into store_shoppertrack values ('','$PHPSESSID','$_POST[sel_item_id]','$_POST[sel_item_qty]','now())";
mysql_query($addtocart);
header("Location:showcart.php");
exit;
I get error message warning: cannot modify header information-
headers already sent by (output started at c:\xitami-25\app\webpages\addtocart.php:6) etc.
Basically, table store_shoppertrack is already updated with session information but why this behavior?
I need to be redirected to load the page showcart.php.
Thanks.
James
the script requires, i.e. p.415,
$addtocart = "isert into store_shoppertrack values ('','$PHPSESSID','$_POST[sel_item_id]','$_POST[sel_item_qty]','now())";
mysql_query($addtocart);
header("Location:showcart.php");
exit;
I get error message warning: cannot modify header information-
headers already sent by (output started at c:\xitami-25\app\webpages\addtocart.php:6) etc.
Basically, table store_shoppertrack is already updated with session information but why this behavior?
I need to be redirected to load the page showcart.php.
Thanks.
James