ช่วยด้วยครับ MySQL error ตรงไหนไม่รู้ฮะ.... มันขึ้นว่า.... ไม่สามารถ insert ข้อมูลไปยังตารางได้
มันขึ้นว่า....
ไม่สามารถ insert ข้อมูลไปยังตารางได้
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 'From,To,Bus_Kid,Bus_Code,TableCar_Code,Reserv_Date,Seat_Reserv,Total_Price,Statu' at line 1
.....
อันนี้โค้ด insert คับ...
<?
session_start();
include("dbconn.php");
$SQL = " INSERT INTO reserv (Reserv_Code,Cus_Name,Day_Go,From,To,Bus_Kid,Bus_Code,TableCar_Code,Reserv_Date,Seat_Reserv,Total_Price,Status_Reserv) VALUES ('','aa','$dgo','$pro1','$pro2','$btype','$bcode','$tbc','$dmake','$sele_seat','$all_price','รอ') ";
mysql_query($SQL, $conn)
or die("ไม่สามารถ insert ข้อมูลไปยังตารางได้ <br><br>".mysql_error());
echo "++ บันทึกข้อมูลเรียบร้อยแล้ว ++";
echo "<META HTTP-EQUIV=Refresh CONTENT=3; URL=first_selected.php>";
mysql_close($conn);
?>
Tag : - - - -
Date :
31 มี.ค. 2551 15:57:01
By :
เหนือฟ้ายังมีฟ้า
View :
1288
Reply :
4
แล้วไม่ดึงตารางที่จะลงข้อมูลมาด้วยหรอ
Date :
31 มี.ค. 2551 16:20:21
By :
pop
แล้วไม่ดึงตารางที่จะลงข้อมูลมาด้วยหรอ ..
หมายความว่างัยคับ..งง..
ตอนนี้จะ insert เข้าฐานข้อมูลคับ...
ไม่ช่าย SELECT นะพี่...
Date :
31 มี.ค. 2551 18:25:32
By :
เหนือฟ้า
ลองตั้งชื่อฟิล From กับ To ใหม่อ่ะคับ อาจเป็นคำสงวน
Date :
31 มี.ค. 2551 19:08:53
By :
...
ขอบคุณ คุณ ... นะคับ..ได้แระ..คับ..
Date :
31 มี.ค. 2551 23:02:30
By :
ยังมีฟ้า
Load balance : Server 05