> How can I tell the page to use the userlevel colunm too?

Use it how?...

Do you want to use it to decide where to send them?:
$userlevel = mysql_result($result, 0, 'userlevel');
switch ($userlevel){
    case 1:
        header("Location: guru.php");
    break;
    case 2:
        header("Location: newbie.php");
    break;
}

Or, do you want to only get users matching some pre-defined userlevel?

$sql = "select * from $table_name where member = '$member' and pw = '$pw'
and userlevel = '$userlevel'";


--
Visit the Zend Store at http://www.zend.com/store/
Wanna help me out?  Like Music?  Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to