I want the request not to display a user with id equal to 1
$user_id = 1; mysqli_query($db, "SELECT * FROM tb_users WHERE name LIKE '%$user%' OR username LIKE '%$user%' AND user_id !=".$user_id); This code vseravno displays this user. Where is my mistake?
ORandANDthen the conditions to whichORapplies should be wrapped with brackets:WHERE (name LIKE '%$user%' OR username LIKE '%$user%') AND user_id !=".$user_id- MaxU