i have following code:
SELECT *
FROM table
WHERE thread = $thread
AND (user != $user1 OR user != $user2)
i want the code to pick all rows that contains $thread BUT the user isn't $user1 or $user2.
is my code correct? or should it be like:
SELECT *
FROM table
WHERE thread = $thread
(AND user != $user1 OR user != $user2)
thanks in advance