|
 |
|
แทรกข้อมูลลงในตารางฐานข้อมูล ได้สูงสุดกี่ครั้ง คือโค๊ดของผมเป็นแบบนี้ครับ |
|
 |
|
|
 |
 |
|
คือโค๊ดของผมเป็นแบบนี้ครับ
// แทรกข้อมูลลงในตารางฐานข้อมูล
mysql_query("INSERT INTO room_booking (date_booking_from, date_booking_to, no_adults, no_child, gtemp_title, gtemp_name, gtemp_lastname, gtemp_details, gtemp_company, gtemp_address, gtemp_country, gtemp_nationarity)
VALUES ('$date_checkin','$date_checkout','$no_adults','$no_child','$title','$name','$lastname','$guest_details','$company','$address','$country','$nationality')");
คือโค๊ดนี้มันไม่สามารถแทรกข้อมูลลงได้
ถ้าผมเอา gtemp_nationarity ตัวสุดท้าย ออกจะสามารถ insert ได้ปกติ
ผมเลยสงสัยว่า function INSERT INTO นี้มันจำกัดจำนวนคิวรี่ด้วยหรือป่าว
ถ้าผมจะเพิ่มข้อมูลที่รับมาจากแบบฟอร์ม ที่มันมากกว่านี้ผมควรจะทำยังไง
Tag : - - - -

|
|
 |
 |
 |
 |
Date :
2009-11-19 09:06:39 |
By :
3cha |
View :
967 |
Reply :
3 |
|
 |
 |
 |
 |
|
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
gtemp_nationarity แก้ไขชื่อฟิลด์น่าจะได้ครับ
|
 |
 |
 |
 |
Date :
2009-11-19 09:19:12 |
By :
num |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
เอ้อ... เจอแล้วครับ
ชื่อฟิลด์ผิดนี่เอง nationality : p
|
 |
 |
 |
 |
Date :
2009-11-19 09:44:05 |
By :
3cha |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
อ่านดู error ก็น่าจะพอทราบนะครับ
|
 |
 |
 |
 |
Date :
2009-11-19 10:01:16 |
By :
Sek-Artdrinker |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
|
|
|

|
Load balance : Server 00
|