From 33ff6876ff56c64242bbf32c01bdfd0285c00f42 Mon Sep 17 00:00:00 2001 From: khuxkm Date: Thu, 19 Jul 2018 10:44:08 -0400 Subject: [PATCH] Make the table look 1000% nicer --- stats.php | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/stats.php b/stats.php index 1231ed5..9da7352 100644 --- a/stats.php +++ b/stats.php @@ -4,13 +4,16 @@ include "header.php"; ?>

stats

There are {$stats->usercount} users across {$stats->channelcount} channels.

\n"; - echo "\t\n\t\t\n"; - foreach($stats->channels as $channel) { - echo "\t\n"; - } - echo "\t
NameUser countTopic
{$channel->name}{$channel->usercount}{$channel->topic}
\n"; ?> +

There are usercount?> users across channelcount?> channels.

+ + + +channels as $channel): ?> + + + +
NameUsersTopic
name?>usercount?>topic?>

Available in JSON format.