$con = mysql_connect("localhost","user","pasword");
if (!$con)
{
die('Could not connect: ' . mysql_error());
}
$query = mysql_query("SELECT temp_out FROM wd ORDER BY timestamp DESC");
while($result_row = mysql_fetch_array($query))
$data[$result_row['temp_out']]++;
include("phpgraphlib.php");
$graph=new PHPGraphLib(600,500);
$graph->addData($data);
$graph->setTitle("temperatura");
$graph->setTextColor("red");
$graph->createGraph();
ho trovato questo codice, ma ovviamente non mi funziona, ho scaricato le librerie phpgraphlib
ora devo collegarmi al database e utilizzare della tabella wd i dati temperatura e con questo fare un grafico che segue l'andamento nel tempo.
help me...