On Fri, Mar 14, 2008 at 1:02 PM, Richard Heyes <[EMAIL PROTECTED]> wrote: > > $rowcnt = mysqli_num_rows($loginResult); > > if($rowcnt !="1"){ > > echo "Auth failed"; > > die("Auth failed... Sorry"); > > > > > > > > }else{ > > while($row1 = mysqli_fetch_array($loginResult)) { > > $_SESSION['user'] = $row1['loginName']; > > $_SESSION['loggedin'] = "YES"; > > Eww. Use booleans: > > $_SESSION['loggedin'] = true; > > > > $table = $row1['tableName']; > > $adminLevel = $row1['adminLevel']; > > $authenticated = "TRUE"; > > Like above, I would advise using booleans (true/false) and not strings > (text): > > $authenticated = true; // Note the lack of quote marks > > -- > Richard Heyes > Employ me: > http://www.phpguru.org/cv > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > >
Yes, if it is a lack of being able to see your value using print_r or echo, then use var_dump(). -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php