query mysql_query SELECT FROM users WHERE login word OR inn word OR na

1
2
3
4
5
6
<?
$query= mysql_query("SELECT * FROM users WHERE login='$word' OR inn='$word' OR name='$word' OR surname='$word' OR supername='$word' ORDER BY id");
while($row=mysql_fetch_array($query))
echo $row['id'] . '<br/>';
?>