$t =time()-5*60;
$strSql = "SELECT username FROM members WHERE status > ".$t;
echo $strSql;
// run this query into my sql server
$getUsers = mysqli_query($mysqli,$strSql);
if ( mysqli_num_rows($getUsers) > 0 ) {
$row = mysqli_fetch_array($getUsers);
echo $row['username'];
} else {
echo "Nobody online";
}
Try to run the query in the MySQL server, then you will be clear about the problem :)