pouet.net/stat_graph_users.php

23 lines
429 B
PHP
Raw Normal View History

2013-05-07 14:20:08 -04:00
<?
include_once("include/misc.php");
include_once("include/sqllib.inc.php");
$r = SQLLib::selectRows("select count(*) as c, substr(quand,1,7) as d from users group by d order by d");
include('postgraph.class.php');
2013-05-07 14:20:08 -04:00
$graph = new PostGraph(1920,1080);
$data = array();
foreach ($r as $o)
$data[$o->d] = $o->c;
2013-05-07 14:20:08 -04:00
$graph->setData($data);
$graph->setXTextOrientation('vertical');
$graph->drawImage();
$graph->printImage();
?>