I'm selecting data from my database, and still its saying I'm in the game. When I'm not, for which I check for.
Any clue how to solve this problem?
$moneda = (CMS == 'uber' ? $users->GetUserVar(USER_ID, moneda) : $myrow[moneda]);
$isonline = mysql_query("SELECT `online` FROM `users` WHERE `username` = ".$_POST['Naam']."");
$error = array();
if($isonline == 1)
$error[] = "De ander moet uit het hotel gaan voordat je belpixels kunt overschrijven.";
$isonlineis getting the result set from your query - that will only be false if the SQL query fails. You need to get the output of the query with something like mysql_fetch_array first.mysql_*, as they are being deprecitated by PHP. php.net/manual/en/… php.net/manual/en/mysqlinfo.api.choosing.php