// เก็บชื่อภาพลงฐานข้อมูล
$insertSQL = "INSERT INTO person (name,position,section,details,tel,mail,facebook,lines,image_name,) VALUES ('".$_POST["name"]."','".$_POST["position"]."','".$_POST["section"]."','".$_POST["details"]."','".$_POST["tel"]."','".$_POST["mail"]."','".$_POST["facebook"]."','".$_POST["lines"]."','".$image_name."')" ;
mysql_select_db($database_connection, $connection);
$Result1 = mysql_query($insertSQL, $connection) or die(mysql_error(). "<br />" . $insertSQL);
ขึ้น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 'lines,image_name,) VALUES ('hh','hh','hh','hhh','02355','[email protected]',' at line 1
$insertSQL = "INSERT INTO person (name,position,section,details,tel,mail,facebook,lines,image_name) VALUES ('".$_POST["name"]."','".$_POST["position"]."','".$_POST["section"]."','".$_POST["details"]."','".$_POST["tel"]."','".$_POST["mail"]."','".$_POST["facebook"]."','".$_POST["lines"]."','".$image_name."')" ;
mysql_select_db($database_connection, $connection);
$Result1 = mysql_query($insertSQL, $connection) or die(mysql_error(). "<br />" . $insertSQL);
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 'lines,image_name) VALUES ('ggggg','ggggggg','ggggggg','gggggggg','000','[email protected]'' at line 1