I have a page that I want to check if that user is a 1 or a 0. Here's what I have, maybe someone can point out what I need to do to make this right.
Code: Select all
<?php
$query = ("SELECT * FROM users");
if($logged_in){
if($query['sec_lvl'] == 1){
//CONTENT HERE
}
}
?>Honestly, I'm not sure if the value $logged_in is even the correct one for it. I also have the variables
Code: Select all
<?php
$_SESSION['username']
$_SESSION['password']
?>If you need more clarification, just ask and I will try to give as much as possible.
Thanks