Hello is it possible to create a bar chart or some sort of chart based on two coloums from mysql table i want the graph to be displayed on php when the search is carried out im not sure if this has been done before but if so what do i need to do?? thanks

Recommended Answers

Do you mean a visualization of statistics? Then you could use the GD-Lib (see on php.net) to create images with you graph. Or in a bit simpler way just use HTML-Tables.


Jump to Post

It's actually much easier to make bar graphs with CSS than it is with PHP.
Here's an quick tutorial http://www.khmerang.com/index.php?p=118

Jump to Post

All 7 Replies

Do you mean a visualization of statistics? Then you could use the GD-Lib (see on php.net) to create images with you graph. Or in a bit simpler way just use HTML-Tables.


A "loading, please wait"-bar is a bit more tricky. I can't see any other solution then Flash. But you could get around it by using an animated GIF

Personally I use JpGraph in a CRM I wrote. It gives you the ability to easily create pie charts, bar graphs, or any other type of chart or graph you could imagine.

how to make the exac value in graph??

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.19 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.