|
 |
|
UPDATE แบบหลายรายการ แต่ query ไม่ผ่าน ช่วยหน่อยครับ |
|
 |
|
|
 |
 |
|
เข้า phpmyadmin แล้ว จากนั้น แก้ไข fields ในตารางที่ต้องการ
phpmyadmin จะสร้าง code "sql update" ขึ้นมา ให้ copy code "sql update" ที่ phpmyadmin สร้างขึ้น
มา ไปวางแทน คำสั่ง sql ของคุณ
|
 |
 |
 |
 |
Date :
2009-10-15 12:01:05 |
By :
// |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
อ่อทำหมดแล้วครับ มันก็ยังไม่ได้ครับ
|
 |
 |
 |
 |
Date :
2009-10-15 12:04:51 |
By :
Dragons_first |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ตรง model='".$_POST["model"]."' ลองเปลี่ยนเป็น ---> model='".$_POST['model']."'
|
 |
 |
 |
 |
Date :
2009-10-15 12:30:33 |
By :
noname |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
*ตัวแปลอื่นๆด้วยนะ ไม่ใช่ model อย่างเดียว
|
 |
 |
 |
 |
Date :
2009-10-15 12:31:50 |
By :
noname |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
อ่อ อีกที่ WHERE id='1' ไม่ทราบว่ารับค่า มาเป็นตัวแปรอะไร ใช้ get หรือ post หรอ
WHERE id='1' ------> WHERE id='ค่าตัสแปร id ที่รับมาโดย get หรือ post'
|
 |
 |
 |
 |
Date :
2009-10-15 12:34:59 |
By :
noname |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
error ขึ้นว่าไงครับ เห็นเขียน แสดง error ไว้ด้วย
ขอดูหน่อยได้เปล่าครับ 
|
 |
 |
 |
 |
Date :
2009-10-15 13:05:52 |
By :
onizike |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
collesize='".$_POST["colletsize"]. ชื่อฟิลด์ผิดเปล่าครับ
(colletsize)
|
 |
 |
 |
 |
Date :
2009-10-15 14:17:40 |
By :
xbeginner01 |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
สรุปว่าทำได้แล้วครับ
|
 |
 |
 |
 |
Date :
2009-10-15 16:57:55 |
By :
Dragons_first |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
|
|
|

|
Load balance : Server 05
|