Sign in to follow this  
stainedrug

FusionCharts_Gen.php and mysqli

Recommended Posts

I recently started using Fusion Charts, Aside from the obvious of changing my FusionCharts_Gen.php to use mysqli, I was wondering If I have an old file or does FC not support mysqli or PDO yet?

Edited by stainedrug

Share this post


Link to post
Share on other sites
Guest Sashibhusan

Hi,

 

Please note that the "FusionCharts_Gen.php" file provided by FusionCharts Suite XT is quite older file and is internally implementing the modules to build the XML string for the chart, as per the db query result.

 

So, if you are trying to implement mysqli or PDO, it might not give work properly.

 

So, we will suggest you to use the FusionCharts PHP wrapper "FusionCharts.php" to just output  the required JavaScript and XML/JSON for rendering the chart and implement mysqli or PDO of your own to fetch the data from DB and building required XML/JOSN string as per FusionCharts data format.

 

For details on the implementation of the FusionCharts.php wrapper, please visit the blog link: http://blog.fusioncharts.com/2012/03/javascript-charts-using-php-and-mysql-with-fusioncharts-xt-part-2/

 

Hope this helps!

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
Sign in to follow this