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 '' at line 1
Код:
<?php
$sql222=mysql_query("SELECT * FROM `users` WHERE `id` LIKE $id ") or die(mysql_error());
$num=mysql_num_rows($sql222);
if($num == 0) {
die( " rteterwrewrw ");}
if($num > 0) {
$row=mysql_fetch_assoc($sql222);
}
?>