$sql = "insert into form (id,sex,name,lastname,adress,phonenum,email,sMonth1,sDay1,sYear1,cFlight1,flightNo1,sMonth2,sDay2,sYear2,timeA1,sMonth3,sDay3,sYear3,cFlight2,flightNo2,sMonth4,sDay4,sYear4,timeA2,cRoom1,sRoom1,cRoom2,sRoom2,cRoom3,sRoom3,cRoom4,sRoom4,cBed,sBed,specialReq) values
($_POST[''],$_POST['sex'],$_POST['name'],$_POST['lastname'],$_POST['adress'],$_POST['phonenum'],$_POST['email'],$_POST['sMonth1'],$_POST['sDay1'],$_POST['sYear1'],$_POST['cFlight1'],$_POST['flightNo1'],$_POST['sMonth2'],$_POST['sDay2'],$_POST['sYear2'],$_POST['timeA1'],$_POST['sMonth3'],$_POST['sDay3'],$_POST['sYear3'],$_POST['cFlight2'],$_POST['flightNo2'],$_POST['sMonth4'],$_POST['sDay4'],$_POST['sYear4'],$_POST['timeA2'],$_POST['cRoom1'],$_POST['sRoom1'],$_POST['cRoom2'],$_POST['sRoom2'],$_POST['cRoom3'],$_POST['sRoom3'],$_POST['cRoom4'],$_POST['sRoom4'],$_POST['cBed'],$_POST['sBed'],$_POST['specialReq'])";
$result = mysql_db_query($dbname,$sql);
if (!$result){ echo("เอ็กซิคิวต์คำสั่ง SQL ไม่ได้ " . mysql_error() ); exit;}
else{echo "<font size=3 color = red >บันทึกข้อมูลเรียบร้อยแล้ว <br>";}
echo "$sql";
?>
ลองแก้เป็นแบบนี้แล้วมัน เออเร่อครับ ผิดพิมพ์ผิดป่าวหว่า
Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in C:\AppServ\www\test\insert.php on line 8