0
I’m trying to make a record by form
system, however I am receiving the following message :
Error:
Cannot add or update a child row: a foreign key constraint fails
(`gpiweb_pdi`.`avaliacoes_simulados`, CONSTRAINT
`fk_usuario_cadastro_avaliacoes_simulados` FOREIGN KEY
(`usuario_cadastro`) REFERENCES `usuarios_acesso` (`id_usuario`) ON
DELETE NO ACTION ON U)
Someone would know what can be and how to solve?
Thank you
how are you doing this transaction ? is Insert? update? delete?
– Jose Vieira Neto
what I saw is missing you set the id_user to work.
– Jose Vieira Neto
Perfect José Vieira...is exactly this... could not go empty this field... Thank you
– user24136
The error has to do with the foreign key FK... Check in the table construction if it is null... I hope to have helped....
– Qu33n