I'm getting this error once the script is triggered:
1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'where customers_id = '6 set customers_group_pricing = '4'' at line 1
in:
[update zen_cartcustomers where customers_id = '6 set customers_group_pricing = '4']
when I try to apply this code:
global $db;
if (!$_SESSION['cart']->in_cart('products_id', '121')) {
$db->Execute("update " . TABLE_CUSTOMERS ." where customers_id = '" . (int)$_SESSION['customer_id'] . " set customers_group_pricing = '4'");
}
So I know I am off in my scripting a little somewhere. No error log debug. So I am hoping someone can see where I scripted wrong. I am trying to write the customers (customer id is 6 in this case) group pricing field in the database when this product 121 is in the cart. It look like it is having a problem with the numbers, either customers id or ??? I'm thinking a space/period/quote somewhere will bring it all together, but I don't know... any body see my typo/script mistake?


Reply With Quote


