Hi,
I'm getting a headache, with the following code....Just to explain, the basics....I have a MySQL table called users:
{username, passwd, email, admin} - They are all chars,
except the admin which is a tinyint. I'm using this as a flag. 1 for an admin user, and 0 for normal.
From my 'login.php' screen, Once the user enters his username and password, he goes to the member.php screen. But its in this script that I'm having the problem. My member.php script is where I check the sessions, It uses a login function from my 'user_auth_functions.php' script. But its not working...
Where do I do the checks for the user/admin session variables that I have declared in one of my functions. I've attached the scripts, cos otherwise its too much on this screen. I know its a lot, But would really appreciate if someone could check to see where I'm going wrong.
I've included just some of the functions.....
I feel that its not that hard for someone experienced...unlike a newbie such as myself......Thanks.. Any probs with what I'm doing, please ask....thanks again.