View Single Post
  #50  
Old 12-02-2009, 07:50 AM
  MattAustin's Avatar 
MattAustin MattAustin is offline
 

Advanced Member
  
Join Date: Jul 2008
Posts: 41
 

Default Re: Save Multiple Ship-to Addresses Completed

I have this working but the line:
db_query("update xcart_sessions_data set data = '".serialize($new)."' where sessid='$sessid' ");

At line 111 causes the SQL error:

SQL query : update xcart_sessions_data set data = 'a:61:{s:11:"editor_mode";s:0:"";s:8:"is_robot";s: 1:"N";s:5:"robot";s:0:"";s:11:"is_location";s:1:"Y ";s:9:"adaptives";a:11:
etc etc

at line 1
Request URI: /createAlt.php

and also

the line:
//Header("Location: register.php?mode=update&action=cart");
//Header("Location: register.php?mode=update");
Header("Location: " . $_SERVER['HTTP_REFERER'] );

at around line 52 causes PHP error:
Cannot modify header information - headers already sent by (output started at /var/www/vhosts/qvsdirect.com/httpdocs/include/func/func.db.php:196) in /var/www/vhosts/qvsdirect.com/httpdocs/createAlt.php on line 54

Like I say it seems to work but I would love to get rid of these errors.
__________________
xcart version 4.1.6 Gold
Linux 2.6.9-67.0.20.ELsmp
www.qvsdirect.com
Reply With Quote