ไม่สามารถเพิ่มข้อมูลได้
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 'values ('','ปผดแกฟดแ','','','','','ผปแปผ','','','','','')' at line 1
โค๊ด
<?
session_start();
include"connect.php";
$vnum=$_POST["van_num"];
$vpro=$_POST["van_pro"];
$vbran=$_POST["van_bran"];
$vcolor=$_POST["van_color"];
$vn=$_POST["van_n"];
$vins=$_POST["van_ins"];
$vcer=$_POST["van_cer"];
$vname=$_POST["van_name"];
$ving=$_POST["van_ing"];
$vadd=$_POST["van_add"];
$vstu=$_POST["van_stu"];
$sql="insert into van(van_id,van_num,van_pro,van_bran,van_color,van_n,van_ins,van_cer,van_name,van_ing,van_add,van_stu values ('','$vnum','$vpro','$vbran','$vcolor','$vn','$vins','$vcer','$vname','$ving','$vadd','$stu')";
mysql_query($sql, $conn)
or die ("ไม่สามารถเพิ่มข้อมูลได้<br>".mysql_error());
mysql_close($conn);
$sql="insert into van(van_id,van_num,van_pro,van_bran,van_color,van_n,van_ins,van_cer,van_name,van_ing,van_add,van_stu values ('','$vnum','$vpro','$vbran','$vcolor','$vn','$vins','$vcer','$vname','$ving','$vadd','$stu')";