Re: Using selected fields

From: Date: Fri, 16 Mar 2001 06:53:22 +0000
Subject: Re: Using selected fields
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-44226@lists.php.net to get a copy of this message
> 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

« previous php.general (#44226) next »