connect_error){ die("Ошибка подключения". $mysql->connect_error); } $query = "INSERT INTO Products (`title`, `price`, `count_p`, `discription`, `img`) VALUES ('$title', '$price','$count_p', '$discription', '$img')"; $result = $mysql->query($query); if(!$result){ echo "Что то не так" . $mysql->error; } else{ echo ""; } ?>