Hi I made two tables in PHPmyadmin, I received this error when I tried to transfer the data into my database:
Error:Cannot add or update a child row: a foreign key constraint fails (
poolfootball
.choix
, CONSTRAINTchoix_ibfk_1
FOREIGN KEY (id_member
) REFERENCESlog_in
(id_member
) ON UPDATE CASCADE)
I think the only error is the data transfer from table log_in to choix. I have no problem with the table log_in. I already got my log_in table and the data transfer into the database works well. When I try to do the the same thing for table choix, I get this error. I'm trying to make this for entertainment. I will use this website with my friends only. Thank you for your help!