From 0123c59b1ae38c559949f214e64a7f1c3a78cedb Mon Sep 17 00:00:00 2001 From: Rumperuu Date: Fri, 5 Dec 2014 00:43:33 +0000 Subject: [PATCH] stuff --- page.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/page.php b/page.php index 629a719..e151a02 100644 --- a/page.php +++ b/page.php @@ -22,10 +22,8 @@ // Sets sql charset to utf-8 $mysqli->set_charset("utf8"); - - $sql = "SELECT HostType, COUNT(HostType) AS "Num" FROM serverlist GROUP BY HostType"; - $result = mysqli_query($mysqli, "SELECT HostType, COUNT(HostType) AS "Num" FROM serverlist GROUP BY HostType;"); + $result = mysqli_query($mysqli, "SELECT HostType, COUNT(HostType) AS \"Num\" FROM serverlist GROUP BY HostType;"); while($row = mysqli_fetch_row($result)){ // puts the value for COUNT(HostType) into $num{i}, so $num0, $num1, $num2, etc.