I’m using the following query to find users in the ‘Employer’ table:
$username = mysql_real_escape_string($username);
$query = "SELECT password, salt
FROM Employer
WHERE Employer_Name = '$username';";
I have a second table called Clients (with the password & salt fields as well as a username field) , is it possible to search both tables for a single username?
(If any more information is required then let me know)
I think what you need here is a UNION: