I do not understand anything at all, the request seems to be correct. But does not display a string with the desired id;
<?php $mysqli = new mysqli("host", "user", "pass", "bd"); if ($mysqli->connect_errno) { echo "Не удалось подключиться к MySQL: (" . $mysqli->connect_errno . ") " . $mysqli->connect_error; } $id = $_POST['productID']; $res = $mysqli->query("SELECT SS_products FROM title WHERE id = $id"); echo $res; ?> The query is kind of correct, but the result of the query is empty.