02.07.2016, 16:27
Sorry for bumping, But i really need this.
It's keep showing this errors whenever i save the weapons:
Also i have set the ID, WeaponID as UNIQUE and PRIMARY KEY.
It's keep showing this errors whenever i save the weapons:
Code:
[19:08:31] [ERROR] CMySQLQuery::Execute[] - (error #1452) Cannot add or update a child row: a foreign key constraint fails (`oma`.`weapondata`, CONSTRAINT `weapondata_ibfk_1` FOREIGN KEY (`ID`) REFERENCES `weapondata` (`ID`) ON DELETE CASCADE ON UPDATE CASCADE) [19:08:31] [ERROR] CMySQLQuery::Execute[] - (error #1452) Cannot add or update a child row: a foreign key constraint fails (`oma`.`weapondata`, CONSTRAINT `weapondata_ibfk_1` FOREIGN KEY (`ID`) REFERENCES `weapondata` (`ID`) ON DELETE CASCADE ON UPDATE CASCADE) [19:08:31] [ERROR] CMySQLQuery::Execute[] - (error #1452) Cannot add or update a child row: a foreign key constraint fails (`oma`.`weapondata`, CONSTRAINT `weapondata_ibfk_1` FOREIGN KEY (`ID`) REFERENCES `weapondata` (`ID`) ON DELETE CASCADE ON UPDATE CASCADE)