Hey guys, Im having a nightmare of a problem.
I have a fairly large database and need to generate some useful graphs at the end of each month via a crontab.
I cannot for the life of me figure out how to get dynamic data from sql to a GD graph and then save the graph as a .png etc for use later.
Im trying to do something like below.. If anyone knows how to do this please either post the code or point me in the direction of how to do this. Only got a week left to get this sorted!
--
I have a database with many values, Im really only interested in rows created in the passed month.
So what i want is to SELECT all rows that have been created last month ( From teh datecreated ) feild and then count how many have a overallpercent done > 99 LIKE BELOW:
elect user, COUNT(overalldone) from data where overalldone > 99 group by user;
Then basically chuck this in a bar graph.
So it shows what user has a higher amount of completed tasks against how many they have actually created..
I hope this makes sence!
Cheers
G
I have a fairly large database and need to generate some useful graphs at the end of each month via a crontab.
I cannot for the life of me figure out how to get dynamic data from sql to a GD graph and then save the graph as a .png etc for use later.
Im trying to do something like below.. If anyone knows how to do this please either post the code or point me in the direction of how to do this. Only got a week left to get this sorted!
--
I have a database with many values, Im really only interested in rows created in the passed month.
So what i want is to SELECT all rows that have been created last month ( From teh datecreated ) feild and then count how many have a overallpercent done > 99 LIKE BELOW:
elect user, COUNT(overalldone) from data where overalldone > 99 group by user;
Then basically chuck this in a bar graph.
So it shows what user has a higher amount of completed tasks against how many they have actually created..
I hope this makes sence!
Cheers
G