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(); ?> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php