How can I generate graphs and charts from a mysql database using php?
I'm trying to use "chart director" but I can't even install it properly, because I'm using php version 5.3, and it's using a deprecated function dl
.
Do you know of any alternatives that:
Nope, a database is for storing and retrieving data efficiently and safely. Not for other purposes. Use any client application to retrieve the data the way you need it (from MySQL), and to graph it accordingly. Show activity on this post.
Data can be fetched from MySQL tables by executing SQL SELECT statement through PHP function mysql_query. You have several options to fetch data from MySQL. The most frequently used option is to use function mysql_fetch_array(). This function returns row as an associative array, a numeric array, or both.
You can use JPGraph and Graphpite
http://jpgraph.net/
http://graphpite.sourceforge.net/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With