The way I think it can be done (I'm no script genius), is to add a second filter to this line:-
$result = mysql_query ("SELECT name, race, class, level, map, gender FROM characters WHERE online = 1");
Something like $result = mysql_query ("SELECT name, race, class, level, map, gender FROM characters WHERE online = 1 AND Realmd/Tables/Account GMlevel >0");
Hopefully someone will...um..adjust my attempt
think this should work:
.....
$result = mysql_query ("SELECT name, race, class, level, map, gender FROM characters WHERE online = 1[/b] and accid in([color=blue]select accid from realmd where gmlevel >0)[/color];
not tested
it has nothing todo with PHP just SQL
not working, and the another tips dont work too ( i need only a number, how many gms are online or not )