Jump to content

Registration Error


rpalmer800

Recommended Posts

Hi,

For months we have been doing fine, and there were no edits or anything, and just the other day we started getting errors from the registration form. And, we haven't touched that, or the databases recently, so i am clueless as to why it is happening.

Error:

Error Registering

Cannot add or update a child row: a foreign key constraint fails (`vdalairl_phpvms`.`phpvms_pilots`, CONSTRAINT `phpvms_pilots_ibfk_1` FOREIGN KEY (`code`) REFERENCES `phpvms_airlines` (`code`) ON UPDATE CASCADE)

Any help would be greatly appreciated.

Link to comment
Share on other sites

  • Moderators

Did you change anything in the database tables such as table colum changes?

Although, something for you to try. Back up your database first and run this query.... and see what you got.

ALTER TABLE `phpvms_pilots`
 ADD CONSTRAINT `phpvms_pilots_ibfk_1` FOREIGN KEY (`code`) REFERENCES `phpvms_airlines` (`code`) ON UPDATE CASCADE;

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...