1

Error SQL query:

INSERT INTO  `wp_jhn6gjgchw_comments` 
VALUES (

"1",  "111",  "xxxx",  "yyyyyy@gmail.com",  "http://www.aaa.com",  "10.10.10.10",  "2015-01-01 00:00:00",  "2015-01-01 00:00:00", "Hello admin please tell me how i can root my lg optimus p500 ,because without rooting i am not able to install kali linux ,please help me .",  "0",  "1", "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/31.0.1650.63 Safari/537.36",  "",  "0",  "0"
);

MySQL said: Documentation

1054 - Unknown column '10' in 'field list'

Lukasz Szozda
  • 162,964
  • 23
  • 234
  • 275

2 Answers2

0

You need to use single quotes '' to provide the values.

So it should be like

insert into `yourtablename`
values('10','587',''.........)

Also make sure that you are providing the correct and all the values for your every column of table and in sequence since you are not specifying the column names.

In your case the query would be like

INSERT INTO  `wp_jhn6gjgchw_comments` 
VALUES ('1',  '111',  'xxxx',  'yyyyyy@gmail.com',  'http://www.aaa.com',  '10.10.10.10',  '2015-01-01 00:00:00',  '2015-01-01 00:00:00', 'Hello admin please tell me how i can root my lg optimus p500 ,because without rooting i am not able to install kali linux ,please help me .',  '0',  '1', 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/31.0.1650.63 Safari/537.36',  '',  '0',  '0');
Rahul Tripathi
  • 168,305
  • 31
  • 280
  • 331
0

Use this format

INSERT INTO `wp_jhn6gjgchw_comments`(`id`, `trans_id`, `refund_status`, `status`, `req_time`) VALUES ('10','g','dgfsf','gfh','hgh')
Sanooj T
  • 1,317
  • 1
  • 14
  • 25