I am trying to run an insert query from codeigniter by using the following code
$this->db->query($query);
but I am getting the following error:
Error Number: 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 '' at line 4
INSERT INTO order_bank
(creation_date, order_type, so_no,
material_no, description, order_qty, no_of_panels,
division, job_number, customer_group, sales_office,
sales_group, project_name, project_manager,
net_value_myr, credit_status, so_delivery_date,
order_delivery_date)
VALUES ( '2013-07-01', 'ZTOR', 3058627219,
101900000000, 'SUPPLY, MODIFY, INSTALL TEST VCU',
1, 0, 'AIS (TSM)', 'SC139203J01', 'Industry',
'SEA', 'DOM', 'MELAKA',
'Phua Tiang Hai', 42954.55, '', '2013-07-11',
'2013-07-05');
Filename: C:\wamp\www\system\database\DB_driver.php
Line Number: 330
But when I am running the above query in phpmyadmin its working perfectly. Please help me in sorting out the issue