Naveen Ram

Help Needed To Display Graph From Mysql Database And Php

Recommended Posts

Hello FusionChart experts,

 

Could some one help me displaying "MSColumn3DLineDY" chart. values should be queried from Database.

 

Below is is what i have done

 

$strQuery = "Select ID,userid,CourseID,Marks,StudCatID from studperf

where userid = '$UID' order by CourseID";

 

$result = mysql_query($strQuery) or die(mysql_error());

 

if ($result) {

$FC->$UID->addDatasetsFromDatabase($result, "CourseID", "Marks;");

}

 

mysql_close($link);

$FC->$UID->renderChart();

 

ant i have attached the output screen of above code(query.jpg)post-20134-0-76247700-1312802965_thumb.jpg and I also attached the required type of graph screen shot(needed.jpg) post-20134-0-35212300-1312802951_thumb.jpgas well.

 

Please help me how to get the above said graph and data should populate from database.

 

Thanks,

Naveen

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now