$count['hits'] = 0; if ( $docount = $DB_site->query_first)" SELECT COUNT(*) AS totalhits FROM hits WHERE dateline>$bbuserinfo[lastvisit] AND siteid=10 ") and !empty( $docount['totalhits'] ) ) { $count['hits'] = number_format( $docount['totalhits'] ); }