View Single Post
Old September 9th, 2004, 1:28 AM   #1 (permalink)
chap
Registered User
Fresh Surpasser
 
Joined in Apr 2004
12 posts
Gave thanks: 0
Thanked 0 times
Question MySQL syntax error, help!

Hi,

I'm trying to enter some data into MySQL, but I keep getting this error:

PHP Code:
 
Error in query
INSERT INTO product (stock_numseriesnamethread_iddim_hdim_wdim_lweight, case) VALUES ('10999a''s12''test tein''325''123.6''123''423''123.67''4'). You have an error in your SQL syntaxCheck the manual that corresponds to your MySQL server version for the right syntax to use near 'case) VALUES ('10999a', 's12', 'Wulfe Stein', '325', '123.6', ' 
This is the structure of the 'product' table:
PHP Code:
   inv_id  int(255)  UNSIGNED No    auto_increment              
   stock_num  varchar
(255)   No                  
   series  varchar
(255)   No                  
   name  varchar
(255)   No                  
   thread_id  int
(255)  UNSIGNED No  0                
   dim_h  varchar
(255)   No  0                
   dim_w  varchar
(255)   No  0                
   dim_l  varchar
(255)   No  0                
   weight  varchar
(255)   No                  
   
case  varchar(10)   No  0 
Please help!
chap is offline   Reply With Quote