Warning: Undefined variable $id in /home/viladeto/public_html/mod/fotos_autor.php on line 7

Fatal error: Uncaught mysqli_sql_exception: Cannot add or update a child row: a foreign key constraint fails (`viladeto_web`.`fotos_lectures`, CONSTRAINT `fotos_lectures_ibfk_1` FOREIGN KEY (`id_contingut`) REFERENCES `fotos` (`Id`) ON DELETE CASCADE) in /cms7.core/class0/DataBaseMysql.class.php:32 Stack trace: #0 /cms7.core/class0/DataBaseMysql.class.php(32): mysqli->query('Insert into fot...') #1 /cms7.core/class0/xivatos.class.php(129): DataBaseMysql->RunQuery('Insert into fot...') #2 /home/viladeto/public_html/mod/fotos_autor.php(7): xivatos->insert_fotos_lectures(NULL, '44.200.101.84', '2023-10-03 00:0...', 1) #3 /home/viladeto/public_html/index.php(655): include('/home/viladeto/...') #4 {main} thrown in /cms7.core/class0/DataBaseMysql.class.php on line 32