How to create line graph in php mysql

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Pirontech
Forum Commoner
Posts: 29
Joined: Wed Oct 28, 2009 5:31 am

How to create line graph in php mysql

Post 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..
User avatar
papa
Forum Regular
Posts: 958
Joined: Wed Aug 27, 2008 3:36 am
Location: Sweden/Sthlm

Re: How to create line graph in php mysql

Post 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.
Pirontech
Forum Commoner
Posts: 29
Joined: Wed Oct 28, 2009 5:31 am

Re: How to create line graph in php mysql

Post by Pirontech »

papa wrote: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.

hi, its not helpfull, can please provide me function or location where i can find it ????
User avatar
papa
Forum Regular
Posts: 958
Joined: Wed Aug 27, 2008 3:36 am
Location: Sweden/Sthlm

Re: How to create line graph in php mysql

Post by papa »

Find what?

If you want a complete script look on Google.
Pirontech
Forum Commoner
Posts: 29
Joined: Wed Oct 28, 2009 5:31 am

Re: How to create line graph in php mysql

Post 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....
User avatar
papa
Forum Regular
Posts: 958
Joined: Wed Aug 27, 2008 3:36 am
Location: Sweden/Sthlm

Re: How to create line graph in php mysql

Post 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. :)
Pirontech
Forum Commoner
Posts: 29
Joined: Wed Oct 28, 2009 5:31 am

Re: How to create line graph in php mysql

Post 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...
Post Reply