connect_error){ die("Ошибка подключения". $mysql->connect_error); } $setting = $_POST["hide_c"]; $product_id = $_POST["hide_pr"]; $query = "UPDATE Products SET count_p = count_p - $setting WHERE id = $product_id"; $result = $mysql->query($query); if(!$result){ echo "Что то не так" . $mysql->error; } else{ echo ""; } ?>