JQuery Flot Charts+MySQL

Hello.

I’ve never used a charts in web developing , so I need some help in this case.

My site is totally non-flash , so I decided that Flot Charts is really a good idea.
After reading some of examples and sources …

examples - http://people.iola.dk/olau/flot/examples/
sources - http://code.google.com/p/flot/

I have no idea how to mix it with php and single sql query.
( Charts based on data from MySQL)

If someone , could help me with this , will be appreciated.

To me it looks like the example is using a multidimensional array containing x,y values for each data item. So if you can spit this information out into a javascript array then your 90% of the way there.