Error registering in Mysql [closed]

0

I'm trying to register with form of the system, however I'm getting 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)

Would anyone know what it can be and how to solve it?

Thank you

    
asked by anonymous 22.04.2016 / 16:44

1 answer

2

Verify that you are setando or user id at the time of your transaction . he is complaining that the fk user can not be null .

    
22.04.2016 / 17:04