SELECT * FROM Users WHERE Email = '$Email' Or Username = '$Email' And CompID = $CompID
This does not work, i want the username entry ($Email) to check for a email or username match as well as in the compID field...
what is wrong?
What do you get? Query error etc?
print mysql_error();
for us...
Also, try it without lazy punctuation:
"SELECT * FROM `Users` WHERE `Email` = '$Email' OR `Username` = '$Email' AND `CompID` = '$CompID'"