Help good people, I can not understand what is here and how in php, in my opinion everything seems to be fine, but alas ...
It does not issue errors, it connects, it works in general, as it should, but the result is empty ... I probably request it incorrectly?
<? $host = "localhost"; $dbuser = "***user***"; $dbpass = "***pass***"; $db = "***mydb***"; $id = $_POST['id']; $link = mysql_connect($host, $dbuser, $dbpass) or die("Error connect!"); mysql_select_db($db, $link); if (!empty($id)) { $sql="SELECT * FROM myTable WHERE id LIKE " + $id; $data = mysql_query($sql); $res = mysql_result($data); echo $res; echo $data; } else { echo "Empty id"; } ?>
var_dump($sql);to start. then here - Ipatievwhere id=xx- Mike