Какая-то аномалия происходит!
При отправке запроса MySQL я получаю этот выход в error.log:
[20-Mar-2022 20:20:24 Europe/Kyiv] PHP Warning: Undefined array key "genre" in C:\OpenServer\domains\localhost\adminpanel.php on line 111
[20-Mar-2022 20:20:24 Europe/Kyiv] PHP Warning: mkdir(): File exists in C:\OpenServer\domains\localhost\adminpanel.php on line 124
[20-Mar-2022 20:20:24 Europe/Kyiv] PHP Warning: mkdir(): File exists in C:\OpenServer\domains\localhost\adminpanel.php on line 125
[20-Mar-2022 20:20:24 Europe/Kyiv] PHP Warning: mkdir(): File exists in C:\OpenServer\domains\localhost\adminpanel.php on line 126
[20-Mar-2022 20:20:24 Europe/Kyiv] PHP Fatal error: Uncaught mysqli_sql_exception: 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 't found...',NULL,1,'0001-01-01','films/film-num12/icon.pn' at line 1 in C:\OpenServer\domains\localhost\adminpanel.php:133
Stack trace:
#0 C:\OpenServer\domains\localhost\adminpanel.php(133): mysqli_query()
#1 {main}
thrown in C:\OpenServer\domains\localhost\adminpanel.php on line 133
Жалуется на строку 133:
mysqli_query($connect, "INSERT INTO `films_data`(`id`, `name`, `description`, `rate`, `premium`, `date`, `icon_url`, `name_url`, `film_url`, `size`, `price`, `author`, `ages`, `genre`) VALUES ('$id_0','$film_name2','$description',NULL,$premium_need,'$date','films/$film_name1/icon.png','films/$film_name1/name.png','films/$film_name1/videos/$file_name','$size','$summe','$author','$age',NULL)");
Ничего не понимаю!
Скоро с этим MySQL с ума сойду...