Php 数据库中的图像上传查询

Php 数据库中的图像上传查询,php,Php,我正在使用以下sql查询将图像上载到数据库 $query_upload="INSERT into 'images_tbl' ('images_path','submission_date') VALUES ('".$target_path."','".date("Y-m-d")."')"; mysql_query($query_upload) or die("error in $query_upload == ----> ".mysql_error()); 但是获取和错误: Y

我正在使用以下sql查询将图像上载到数据库

$query_upload="INSERT into 'images_tbl' ('images_path','submission_date')    VALUES ('".$target_path."','".date("Y-m-d")."')";
 mysql_query($query_upload) or die("error in $query_upload == ----> ".mysql_error()); 
但是获取和错误:

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_tbl' ('images_path','submission_date') VALUES ('images/25-10-201' at line 1

有人能帮我修理这个虫子吗

mysql中的表是用反勾号而不是引号转义的。所以用这个来代替:

$query_upload="INSERT into `images_tbl` (`images_path`,`submission_date`)    VALUES ('".$target_path."','".date("Y-m-d")."')";
另请参见尝试以下操作:

$query_upload="INSERT into `images_tbl` (`images_path`,`submission_date`)    VALUES ('".$target_path."','".date("Y-m-d")."')";
表名和列名被倒勾“非单个qoute”包围