Hello
I have this query
FROM sections, users
WHERE users.range LIKE sections.Privilege
or users.A like sections.Privilege
or users.B like sections.Privilege
or users.C like sections.Privilege
or users.D like sections.Privilege
and users.user='$user'
ORDER BY sections.ID");
What I want is to get the results from "range" and if it is nothing like "privilege", then move to "A" and etc but the Operator "OR" is not working for me as I want because instead of a specific list of results it displays all the contents of my database
been working for a while on some code these days and probably I`m not seeing something elementary here. :- o
Any help is appreciated