Грешката, която получавам е тази
А ето и заявката
Въпреки това снимката се записва в базата и се показва коректно.Could not insert data into DB: 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 '1' at line 1
А ето и заявката
Код:
$sql = mysqli_query($connection, "insert into images (caption, filename) values ('".$caption."', '".$image['filename']."')");
$result = mysqli_query($connection, $sql) or die ("Could not insert data into DB: " . mysqli_error($connection));