Notice: Error: 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 'UPDATEoc_product_description SET description = '2013-10-23' WHERE product_id = '' at line 1 Error No: 1064 UPDATEoc_product_description SET description = '2013-10-23' WHERE product_id = '36' in Z:\home\localhost\www\open5\system\database\mysql.php on line 50 С чем это может быть связано?
Нет. $this->db->query("UPDATE" . DB_PREFIX . "product_description SET description = '" .$data['datename'] ."' WHERE product_id = '" . (int)$prod_id['product_id'] . "'");
Код: $this->db->query("UPDATE " . DB_PREFIX . "product_description SET description = '" .$data['datename'] ."' WHERE product_id = '" . (int)$prod_id['product_id'] . "'");