how would i go about making my script to see if the users rank is above say rank 10 without them going through the process of relogining in every time to go to the same page but if they are logged in and below that rank they get you cant any ideas on how i g about it i pretty much got it like this
[code=php]
session_start()l
include(“dbconnect.php”);
error_reporting(E_ALL);
if($_session[‘user’])
{
$cQuery=”select * from members where username='”.$username.”‘”;
echo $cQuery;
$rs=mysqli_query($con,$cQuery)
if(!$rs)
{
echo “Error:”.mysqli_error($con);
}
else
{
if($data[‘rank’]>=19)
{
$user=TRUE;
echo “Welcome to recruitment page”;
}
else
{
echo “You cant”;
}
}
}
else
{
include(“login.php”);
}