Location: PHPKode > projects > Worldweather > worldweather/web/graph.php
<?
   require("MyGraph.php");
   require ("./conf/config.php");
   $ex=new MyGraph(800,200,700,130,50,30,220,220,255,220,255,220);
   $ex->ConnectMySQL($default->db_server,$default->db_user,$default->db_pass);
   $ex->color(250,0,0);
   $ex->Draw($default->db_database,$table,$col,$start,$stop,0,0);
   $ex->color(110,125,110);
   $ex->Caption_B($days*7200,"H/H",1);
   $ex->Caption_L(10);
   $ex->color(0,0,0);
   $ex->Title("$col for $comment");
   $ex->Contour();
   $ex->ImagePNG();
?>
Return current item: Worldweather