Mój problem polega na tym, że nie mogę wypełnić bazy danych, gdzyż otrzymuje komunikat "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1"
<?php $insert = "INSERT INTO movie (movie_id, movie_name, movie_type, " . "movie_year, movie_leadactor, movie_director)". "VALUES (1, 'Bruce Wszechmogący', 5, 2003, 1, 2),". "(2, 'Życie biurowe', 5, 1999, 5, 6),". "(3, 'Wielki Kanion', 2, 1991, 4, 3),"; $type = "INSERT INTO movietype (movietype_id, movietype_label". "VALUES (1, 'Science-fiction'),". "(2, 'Dramat'),". "(3, 'Przygoda'),". "(4, 'Wojenny'),". "(5. ' Komedia'),". "(6, 'Horror'),". "(7, 'Komedia'),". "(8, 'Dla dzieci'),". $people - "INSERT INTO people (people_id, people_fullname,". "people_isactor, people_isdirector)". "VALUES (1, 'Jim Carrey', 1, 0),". "(2, 'Tom Shaydac', 0, 1),". "(3, 'Lawrence Kasdan', 0, 1),". "(4, 'Kevin Kline', 1, 0),". "(5, 'Ron Livingstone', 1, 0),". "(6, 'Mike Judge', 0, 1)"; ?>
Mam słabą wersje ebooka i nie wiem czy przypadkiem nie ma problemu gdzieś z kropkami albo przecinkami...
