|
 |
|
ดูโค้ดให้หน่อยครับ..เวลาเพิ่มตารางฐานข้อมูลหรือเพิ่มส่งข้อมูล มันทำไมerror คับ |
|
 |
|
|
 |
 |
|
errer ยังไงครับ
|
 |
 |
 |
 |
Date :
2010-02-21 14:01:51 |
By :
onedan |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
เอาข้อความ error มาดูครับ จะได้ตอบถูก
แล้วถ้าจะให้ดีเอาตารางมาด้วยก็ดีคับ
$sql="insert into tb_book values (null,'$selec','$firstname','$teach','$selec1','$name','$subject','$code','')";
//***ถ้าเพิ่ม รับค่าจาก $teacher จะ error เลยครับ หรือว่าเพิ่ม Table ฐานข้อมมูลก็ error ครับ****
จากตรงนี้ผมเดาว่าคุณผิดที่คำสั่ง sql นี่แหละ
ลอง echo $sql ออกมาดูก่อนส่งไป query ครับ
ลองเอาค่าที่ echo ลองไปรันสดใน phpMyadmin ดูครับ
|
 |
 |
 |
 |
Date :
2010-02-21 14:39:51 |
By :
iamatomix |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ฐานเพิ่ม ตารางอีก 1 ตารางขึ้นไม่..มันจะฟ้องว่า ไม่สามารถ insert ข้อมูลได้ครับ ผม งง มากๆๆ..ครับ ช่วยด้วยครับ
|
 |
 |
 |
 |
Date :
2010-02-21 15:14:09 |
By :
liwe |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
|
|
|

|
Load balance : Server 02
|