0

Updating

Hello Submens can update but menus can not Why? Table have a id as primary key Parent_id as foreign key from id

21st Jan 2021, 12:47 PM
masih
masih - avatar
2 Antworten
0
masih Question is not clear. Please add description about menu and submenu.
21st Jan 2021, 1:42 PM
A͢J
A͢J - avatar
0
this is my error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`blog`.`menus`, CONSTRAINT `menus_ibfk_1` FOREIGN KEY (`parent_id`) REFERENCES `menus` (`id`) ON DELETE CASCADE ON UPDATE CASCADE)
21st Jan 2021, 1:45 PM
masih
masih - avatar