Codice PHP:

<?php 

include("phpgraphlib.php");


if (
$_POST['gtype'] == mqi)
         {
                echo 
"GRAFICO 1";
         }

if (
$_POST['gtype'] == mqi_acc)
         {
                
grafico_2();
         }

if (
$_POST['gtype'] == perc)
         {
                echo 
"GRAFICO 3";
         }



$mese $_POST['mese'];
switch (
$mese)

        case 
Gennaio
                
$mese="01";
                break;
        case 
Febbraio
                
$mese="02";
                break;
        case 
Marzo
                
$mese="03";
                break;
        case 
Aprile:
                 
$mese="04";
                 break;
        case 
Maggio:
                 
$mese="05";
                 break;
        case 
Giugno:
                 
$mese="06";
                 break;
        case 
Luglio:
                 
$mese="07";
                break;
        case 
Agosto:
                 
$mese="08";
                break;
        case 
Settembre:
                 
$mese="09";
                break;
        case 
Ottobre:
                 
$mese="10";
                break;
        case 
Novembre:
                 
$mese="11";
                break;
        case 
Dicembre:
                 
$mese="12";
                break;
}



$data $_POST['anno'] . "-" $mese "-" $_POST['giorno'];
$dbmysql_connect('localhost''xxxx''mysql') or die('Could not connect: ' mysql_error());
mysql_select_db('xxxxxx') or die('Could not select database');
$dataArray=array();
$dataArray2=array();


$sql="SELECT MQI_errors,MQI_time,MQI_date,MQI_pag  FROM MQI WHERE MQI_date = '" $data "' GROUP BY MQI_time";


$result mysql_query($sql) or die('Query failed: ' mysql_error());
if(
$result)
{
        while(
$row mysql_fetch_assoc($result))
        {
                        
$date=$row["MQI_Date"];
                        
$time=$row["MQI_time"];
                        
$error=$row["MQI_errors"];
                        
$pagser=$row["MQI_pag"];

                        
//ADD TO ARRAY
                        
$dataArray[$time]=$error;
                        
$dataArray2[$time]=$pagser;
        }
}



$graph=new PHPGraphLib(950,480);
$graph->setTitle("ERRORI MQI");
$graph->addData($dataArray,$dataArray2);
$graph->setGradient("red""maroon" "blue" "green");
$graph->setBars(false);
$graph->setLine(true);
$graph->setLineColor("red","green");
$graph->setDataPoints(true);
$graph->setDataPointColor("maroon");
$graph->setDataValues(true);
$graph->setDataValueColor("yellow");
$graph->setGrid(true);
$graph->setBackgroundColor("silver");
$graph->setLegend(true);
$graph->setTitleLocation("left");
$graph->setTitleColor("blue");
$graph->setLegendOutlineColor("white");
$graph->setLegendTitle("ERRORI""PAGINE SERVITE");
$graph->createGraph();



mysql_close($db);




?>

Ovviamente grazie per l'interessamente e per l'aiuto
come vedi mqi_error.php deve accettare parametri in ingresso ...