View Full Version : How to draw graph using Ajax?

March 10th, 2013, 04:58 PM
Can someone guide me on how to solve this problem.I'm new to it.I need to access sqlite database through php and then display graph in ajax.;)

March 11th, 2013, 02:56 AM
Hey, sounds like you're not familiar with the term (and doing probably homework... )

...so my advice would be to first check out what AJAX actually means[1], then have a look at the php functions for sqlite DB[2]

Please do try and work out how to approach the problem, and then approach the forum with specific questions.

Good luck!

[1] http://en.wikipedia.org/wiki/Ajax_(programming)
[2] http://php.net/manual/en/book.sqlite.php (the first result on google for "php sqlite")

March 13th, 2013, 01:54 PM
Thanks for the advice...I try it first...

March 13th, 2013, 03:20 PM
Some questions to help you get started (because programming is generally about taking a big problem, and turning it into lots of little ones):

1. how are you going to access the DB?
2. how are you going to get the data from the DB?
3. how are you going to get the data to the page?
4. how are you going to format the data?
5. how are you going to put it on the page?
6. Has anyone else done any of this before? don't reinvent the wheel! ie. are there any functions or libraries readily available that will help?
(this seems like a good place to start looking! :) https://www.google.co.uk/search?q=javascript+graph )

Good luck!