[thelist] Graph from MySQL Data

Luther, Ron Ron.Luther at hp.com
Mon Oct 28 14:17:01 CST 2002

Hi Gina,

It may require a little more programming effort to get the results you want,
but the GD library lets you create on-the-fly graphs from your database in PHP.

There are lots of tutorials out there you can borrow code from.

Here's a simple bar chart I pull out of a mysql database:

[The <img> source is actually a php program that generates the image.
(Which is kinda neat - normally you call a php page that generates the
html ... this time we're calling an html page which kicks off the php.)
You're certainly welcome to the code if it would be of any help.]



-----Original Message-----
From: Gina K. Anderson [mailto:gina at sitediva.com]

I need to take some data from a mysql database and produce a graph from it.

More information about the thelist mailing list