I tried the following,
DBGetFields ("SELECT user_no, user_status FROM Users ".
"LEFT JOIN Profiles ON Users.user_no = Profiles.user_no ".
"WHERE screenname = '" . addslashes ($screenname) . "'" .
"AND password = PASSWORD('" . addslashes ($password) . "') ");
And I still get the same error message:
Error: 1052: Column: 'user_no' in field list is ambiguous
Without user_no, I then get this error:
Error: 1052: Column: 'screenname' in where clause is ambiguous
Is it possible what I am trying to do?
what I am trying to make possible is a User table that holds all the users settings including password, in their profile table is all there profile settings including their profile name (screenname) and if they have multiple profiles they can sign in with either screenname with their common password, and load their profile according to which name they signed in as...