So I can go one step further and do this:
PHP Code:
$adminonline = mysql_fetch_array(mysql_query("SELECT COUNT(userid) as total FROM session LEFT JOIN user USING(userid) WHERE user.usergroupid=6"));
$adminonline['total'] = $admintotal;
if ($adminonline['total'] > 1) {
echo("There are $adminonline[total] admins online");
} elseif ($adminonline'total'] = 1) {
echo("There is $adminonline[total] admin online");
} else {
echo("There are no admins online");
}
...and this would be perfectly valid?