0 Replies Latest reply on Aug 23, 2007 9:55 PM by (Miguel_Caires)

    Image Gallery Upload Error SQL  Cannot add or update a child row:

      Hey there.

      I've Completed the Image Gallery Tutorial, but when i try to upload pictures i get this.

      Error:
      SQL error: Cannot add or update a child row: a foreign key constraint fails (`qasbahca_qasbah/image_img`, CONSTRAINT `image_img_ibfk_1` FOREIGN KEY (`id_alb`) REFERENCES `album_alb` (`id_alb`) ON DELETE CASCADE ON UPDATE NO ACTION).

      Can anyone explain how to solve this?

      The SQL syntax on how to create both tables correctly, would be much apreciated aswell.

      Thanks for the attention.