 |
|
มันขึ้นว่า....
ไม่สามารถ 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 :
1302 |
Reply :
4 |
|
 |
 |
 |
 |
|
|
|
 |