Hi
I'm trying to set up a page that will display different content depending on who has logged on, there are only 2 types of user. I have a simple login page and I'm using sessions to store the username. The different user types are stored in different tables in a mysql database - this is my problem. I need to search for the username in one table and if it is not there, search the other table.
How can I just search a table for a username, returning a boolean instead of a result variable?
I haven't used php/mysql for a while and I've only just taught myself sessions, any help would be appreciated.
Cheers