jpgraph newbie

From: Date: Wed, 15 Sep 2004 19:10:39 +0000
Subject: jpgraph newbie
Groups: php.general 
Request: Send a blank email to php-general+get-196776@lists.php.net to get a copy of this message
I go the following code form phpfreaks..problem is, when I run it I get a page not found error. I know jpgraph sends the image back to the browser but why do I get page not found? If I force some syntax errors, they will be displayed but this just doesn't seem to do anything. Thanks! $db=new db(); $sql = "select year, mph from car limit 10"; $db->query($sql); while($row = $db->fetch()){ $data[] = $row[1]; $leg[] = $row[0]; } $graph = new Graph(250,150,"auto"); $graph->SetScale("textint"); $graph->img->SetMargin(50,30,50,50); //$graph->AdjBackgroundImage(0.4,0.7,-1); //setting BG type //$graph->SetBackgroundImage("linux_pez.png",BGIMG_FILLFRAME); //adding image $graph->SetShadow(); $graph->xaxis->SetTickLabels($leg); $bplot = new BarPlot($data); $bplot->SetFillColor("lightgreen"); // Fill color $bplot->value->Show(); $bplot->value->SetFont(FF_ARIAL,FS_BOLD); $bplot->value->SetAngle(45); $bplot->value->SetColor("black","navy"); $graph->Add($bplot); $graph->Stroke(); ?>

« previous php.general (#196776) next »