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.
