11-16-2013, 10:34 AM
lil example
provided that there is already a MySQL connection in your Script
$select = "SELECT * FROM t_users WHERE a_zone_num <>-1 ;";
$result = $conn->query($select);
if ($result->num_rows > -1)
{
$online = mysqli_num_rows($result);
echo "Online Players : ".$online;
}

