openside("Prisijunge");
//DB
$hostas= 'localhost';
$user= 'root';
$pass= "***";
$baze= 'dbname';
$dbh=mysql_connect ($hostas,$user,"$pass") or die(mysql_error());
mysql_select_db ("$baze");
$sql = mysql_query("SELECT `online` FROM `characters` where `online`=1") or die(mysql_error());
$ppl = mysql_num_rows($sql);
echo $ppl;
closeside();