Php 我得到一个sql错误

Php 我得到一个sql错误,php,mysql,Php,Mysql,我遇到了这样的错误:- 错误 INSERT into images_tbl ('images_path','submission_date') values('images/09-08-2014-1407586340.jpg','2014-08-09') 错误: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right sy

我遇到了这样的错误:- 错误

INSERT into images_tbl ('images_path','submission_date') values('images/09-08-2014-1407586340.jpg','2014-08-09')
错误:

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 ''images_path','submission_date') 
values('images/09-08-2014-1407586340.jpg',' at line 1
以下是我得到错误的查询:

$query_upload="INSERT into images_tbl ('images_path','submission_date')      values('".$target_path."','".date("Y-m-d")."')";

在MySQL中,应该使用反引号来引用列名,而不是单引号。但是您的列名根本不需要引号。使用

INSERT into images_tbl (images_path,submission_date) values('images/09-08-2014-1407586340.jpg','2014-08-09') 
相反