|
 |
|
ผม insert update delete บนเซฟเวอร์ไม่ได้ แต่กลับทำใน localhost ในเครื่องได้ |
|
 |
|
|
 |
 |
|
มี error ไม๊ครับ ลองเอา error ออกมาดู
Code (PHP)
mysql_query("") or die mysql_error();
|
 |
 |
 |
 |
Date :
2012-08-29 15:21:02 |
By :
arm8957 |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ลองใส่
or die mysql_error();
แล้ว exit();
ให้มันหยุดทำงานด้วยครับ
ไม่งั้นหากมีคำสั่ง redirect , header location
มันจะมองไม่ทัน
หากยังไม่ได้ เอาโค้ดมาดูครับ + DB
Server ไม่มีปัญหาหรอกครับคน เป็นปัญหาที่โค้ดแหละ ถ้าเป็นปัญหาที่ Server จริงคนอื่นก็คงใช้ไม่ได้เหมือนกันล่ะครับ
|
 |
 |
 |
 |
Date :
2012-08-29 16:18:09 |
By :
adaaugusta |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
งั้นลอง INSERT,UPDATE,DELETE แบบเพิ่ม แก้ไข ลบ เองโดยไม่ต้องใช้คำสั่งดูครับ จากนั้น copy คำสั่งที่ได้ไปใช้งานดูครับ ว่ารันได้ไม๊?
|
 |
 |
 |
 |
Date :
2012-08-29 16:20:34 |
By :
arm8957 |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ถ้าไม่รบกวน เอา code มาดูครับ 
|
 |
 |
 |
 |
Date :
2012-08-29 21:13:40 |
By :
apisitp |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
|
|
|

|
Load balance : Server 01
|