Page 1 of 1
How to create line graph in php mysql
Posted: Wed Nov 11, 2009 2:52 am
by Pirontech
i am using php my sql and i have a mysql database and data in it, and i need to make a line graph with it.
i've seen online some nice line-graphs, and so how is the best way to go about making a better graph?
now i want to data picked from the data base and pass the function and according to these values a ;line graph shown but how ?????
Please help me out ????
i have searched it out but not found any relevant solution.
Please reply... i m stucked..
Re: How to create line graph in php mysql
Posted: Wed Nov 11, 2009 3:51 am
by papa
I use the GD library:
http://us2.php.net/manual/en/book.image.php
It's not that hard to make simple graphs and stuff.
Re: How to create line graph in php mysql
Posted: Wed Nov 11, 2009 4:01 am
by Pirontech
hi, its not helpfull, can please provide me function or location where i can find it ????
Re: How to create line graph in php mysql
Posted: Wed Nov 11, 2009 4:14 am
by papa
Find what?
If you want a complete script look on Google.
Re: How to create line graph in php mysql
Posted: Wed Nov 11, 2009 5:06 am
by Pirontech
papa wrote:Find what?
If you want a complete script look on Google.
actualy i want some code snipest, so that i can do it in my programming and beat the exact requirement.
i m not asking the whole code but something helpful so that i can....
Re: How to create line graph in php mysql
Posted: Wed Nov 11, 2009 5:25 am
by papa
Start simple, that's how you learn.
Create an image, add some text to it, play around with colors etc.
Then you can start making the image dynamic.

Re: How to create line graph in php mysql
Posted: Wed Nov 11, 2009 6:51 am
by Pirontech
papa wrote:Start simple, that's how you learn.
Create an image, add some text to it, play around with colors etc.
Then you can start making the image dynamic.

Okay , thanks i m in the same process...