query("SELECT first_name,last_name,usrn,email,pswd FROM psw WHERE usrn ='$usrn' and pswd = '$pswd'"); echo "
" . print_r($result,true) . "
"; if (!$result){ die ("

Error Selecting User from Data Base!

"); } $row = $result->fetch_assoc(); echo "
" . print_r($row,true) . "
"; $first_nameres = $row['first_name']; $last_nameres = $row['last_name']; $usrnres = $row['usrn']; $emailres = $row['email']; $pswdres = $row['pswd']; $k = array( 'first_nameres' => $first_nameres, 'last_nameres' => $last_nameres, 'usrnres' => $usrnres, 'emailres' => $emailres, 'pswdres' => $pswdres, ); echo "
" . print_r($k,true) . "
"; ?>
" . "Sorry, there were problems with your Log-in." . "

" . "
Please Try Again:" . "
Username: " . "
Password: " . "
" . "
" );} else{echo("

" . "Password Protected Area" . "

" . "" . "" . "
Log-in Successful" . "
" . "Welcome $first_nameres." . "
" . "
" );} ?>
©2005 - Data Base Interface - Custom Built at: kwgrubbs.com