stuff
This commit is contained in:
parent
bfc00c212a
commit
0123c59b1a
1 changed files with 1 additions and 3 deletions
4
page.php
4
page.php
|
@ -23,9 +23,7 @@
|
||||||
// Sets sql charset to utf-8
|
// Sets sql charset to utf-8
|
||||||
$mysqli->set_charset("utf8");
|
$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)){
|
while($row = mysqli_fetch_row($result)){
|
||||||
// puts the value for COUNT(HostType) into $num{i}, so $num0, $num1, $num2, etc.
|
// puts the value for COUNT(HostType) into $num{i}, so $num0, $num1, $num2, etc.
|
||||||
|
|
Reference in a new issue