<?
require_once 'includes/db.php';
$connect = @ mysql_connect($db_host, $db_user, $db_pass) or die('cannot connect to server');
@ mysql_select_db($db_name) or die('cannot connect to db');
@ mysql_query("SET NAMES 'utf8'", $connect);
echo mysql_result(mysql_query("select COUNT(*) FROM `users` WHERE `lasttime` > '".(time() - 3600)."' "), 0);
?>