<? $online = $db -> dbcount('COUNT(`session`)','online'); $us = $db -> dbcount('COUNT(`login`)','online',"`id` <> '0'"); echo ' <span class="count">'.$online.'('.$us.'/'.($online - $us).')</span>'; ?>