ÉSTE ES EL ERROR QUE ME DA:
Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`cofaith`.`profile`, CONSTRAINT `prof_dab` FOREIGN KEY (`id_prof`) REFERENCES `dabas` (`id`) ON DELETE CASCADE ON UPDATE CASCADE)' in C:\wamp\www\sitioPrueba\cuesti2_1.php on line 28
( ! ) PDOException: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`cofaith`.`profile`, CONSTRAINT `prof_dab` FOREIGN KEY (`id_prof`) REFERENCES `dabas` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) in C:\wamp\www\sitioPrueba\cuesti2_1.php on line 28
Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`cofaith`.`profile`, CONSTRAINT `prof_dab` FOREIGN KEY (`id_prof`) REFERENCES `dabas` (`id`) ON DELETE CASCADE ON UPDATE CASCADE)' in C:\wamp\www\sitioPrueba\cuesti2_1.php on line 28
( ! ) PDOException: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`cofaith`.`profile`, CONSTRAINT `prof_dab` FOREIGN KEY (`id_prof`) REFERENCES `dabas` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) in C:\wamp\www\sitioPrueba\cuesti2_1.php on line 28