Just returned to puzzling away at this failing script. The cookie is set in the cookies folder, but no entry in the table appears to create a cart id. This is the start of the class file (any advice on how to proceed):
class ShoppingCart { //Get the cart id //If one is not available, make one function get_cart_id(){ if(!isset($_COOKIE['cid'])){ $cart_id = FALSE; }else{ $cart_id = $_COOKIE['cid']; $_SESSION['cid'] = $_COOKIE['cid']; } if($_SESSION['cid']){ $cart_id = $_SESSION['cid']; if($_SESSION['login']){ @mysql_query("UPDATE members SET cart_id='$cart_id' WHERE id=' ".$_SESSION['userid']." ' "); } }else{ $cart_id = FALSE; } if(!$cart_id){ return FALSE; }else{ return $cart_id; } } Joseph ____ • The WDVL Discussion List from WDVL.COM • ____ To Join wdvltalk, Send An Email To: mailto:[EMAIL PROTECTED] Send Your Posts To: [EMAIL PROTECTED] To set a personal password send an email to [EMAIL PROTECTED] with the words: "set WDVLTALK pw=yourpassword" in the body of the email. To change subscription settings to the wdvltalk digest version: http://wdvl.internet.com/WDVL/Forum/#sub ________________ http://www.wdvl.com _______________________ You are currently subscribed to wdvltalk as: [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED] To unsubscribe via postal mail, please contact us at: Jupitermedia Corp. Attn: Discussion List Management 475 Park Avenue South New York, NY 10016 Please include the email address which you have been contacted with.