Saturday, 15 September 2012

javascript - Libchart PHP won't display -



javascript - Libchart PHP won't display -

i wanted know error in code, tried first query if it's working , does. however, set in codes, chart won't display. way i'm using libchart php. give thanks in advance.

<?php include 'libchart/libchart/classes/libchart.php'; require '../connection/connect.php'; header("content-type: image/png"); $chart = new piechart(500, 300); $query = mysqli_query($con,"select (select count(*) jobseeker_reg gender='male') male, (select count(*) jobseeker_reg gender='female') female"); $male=$query[0]['male']; $female=$query[0]['female']; $dataset = new xydataset(); $dataset->addpoint(new point("male", $male)); $dataset->addpoint(new point("female", $female)); $chart->setdataset($dataset); $chart->settitle("number of jobseekers (by gender)"); $chart->render(); ?>

javascript php mysqli

No comments:

Post a Comment