From 5bcc00c903c253948cce58d24b2e16c636bd74e8 Mon Sep 17 00:00:00 2001 From: Martin Ambrus Date: Sun, 22 Oct 2017 21:54:00 +0200 Subject: [PATCH] fix: also missing count alias now :-D --- index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.php b/index.php index edd9c46c..097106cf 100644 --- a/index.php +++ b/index.php @@ -155,7 +155,7 @@ include ("GameEngine/Lang/".LANG.".php"); ".(time() - (60*10))." AND tribe!=0 AND tribe!=4 AND tribe!=5"); + $return = mysqli_query($link,"SELECT Count(*) as Total FROM " . TB_PREFIX . "users WHERE timestamp > ".(time() - (60*10))." AND tribe!=0 AND tribe!=4 AND tribe!=5"); $online=(!empty($return))? mysqli_fetch_assoc($return)['Total']:0; echo $online;