I have a table temp_inventory_cust with the fields customer_id [int(11)] and first_name [varchar(50)], as well as other fields. I'm trying to run this query by typing it into phyMyAdmin, just to make sure it works before coding it in php:
insert into temp_inventory_cust (`customer_id`,`first_name`) values (34,'fred');
It gives me: #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 '\'fred\')' at line 1.
I'm not seeing the problem and am going crazy.
This query runs just fine:
insert into temp_inventory_cust (`customer_id`,`department_id`) values (34,2);
(both fields are int fields in this case.
Table structure
cust_id int(11) No
first_name varchar(50) No
last_name varchar(50) No
email_address varchar(100)No
phone_number varchar(25) No
department_id int(11) No
position_id int(11) No
end_date date No
t_stamp datetime No
Any ideas?