Code:
$query =
"SELECT off_auth.user_id
FROM off_auth, off_users
WHERE off_auth.user_id = off_users.user_id
AND off_auth.passcode = '$pass'
AND off_users.user_name = '$user'";
I like to break up my queries so you can see what you're doing a little better. Whitespace and linebreaks are ignored. Using double quotes means that variables will be parsed, so there's no need to do "string " . $var . " string", just "string $var string". You don't need a semicolon on the end of the query. Also, when you are doing comparisons, any strings need to be quoted: "and x = 'y' " not "and x = y"
A common mistake people make is to make as many tables as possible. This causes confusion, complicated queries, and referential integrity problems.
If you have tables like this:
table 1:
user ID.....user name
1...............joe
2...............bob
table 2
user ID.....user phone number
1..............123-123-1234
2..............123-123-1235
If each user only has 1 phone number, it makes no sense to add the complexity of another table.