Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails
Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails
There are many reasons for this to happen. One of them is giving a wrong column name in your controller. For example: suppose you have given userrr_id instead of user_id. which is not available in your database.
Comments
Post a Comment