แก้ Cannot add or update a child row:

ตอบกระทู้

รูปแสดงอารมณ์
:icon_plusone: :like: :plusone: :gfb: :-D :) :( :-o 8O :? 8) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :wink: :!: :?: :idea: :arrow: :| :mrgreen: :angry: :baa: :biggrin:
รูปแสดงอารมณ์อื่นๆ

BBCode เปิด
[img] เปิด
[url] เปิด
[Smile icon] เปิด

กระทู้แนะนำ
   

มุมมองที่ขยายได้ กระทู้แนะนำ: แก้ Cannot add or update a child row:

Re: แก้ Cannot add or update a child row:

โดย Kanyarat Kanthawong » 24/04/2019 3:22 pm

แก้ได้แล้วค่ะ ขอบคุณ

Re: แก้ Cannot add or update a child row:

โดย mindphp » 23/04/2019 12:48 pm

ใช้ฐานข้อมูล อะไรครับ
ขอรายละเอียดตอนสร้างตาราง (โครงสร้างตารางด้วยครับ)

แก้ Cannot add or update a child row:

โดย Kanyarat Kanthawong » 23/04/2019 12:40 pm

จะ insert ข้อมูลเข้าฐานข้อมูลแล้ว ขึ้นว่า Cannot add or update a child row: a foreign key constraint fails (`qr_code`.`special_event`, CONSTRAINT `special_event` FOREIGN KEY (`id_place`) REFERENCES `place` (`id_place`)) ไม่รู้ว่าผิดตรงไหน แต่สร้างความสัมพันธ์หมดแล้วนะ พอจะ insert ก็ขึ้นมาแบบนี้ตลอด แก้ยังไงค่ะ

ข้างบน