Hi , Asgallant, Your knowledge on this is really excellent.
What about my json file is different from the special one for google visulization chart? How to convert it to the one fit for google charts? Also will not add the cols, rows manually for the chart, any fast way to do that? Your reply is very apprecaited. Thanks On Monday, August 29, 2011 6:07:14 AM UTC-7, asgallant wrote: > > Pull your data from MySQL using whatever tools you like (I prefer PDO, but > to each his own) and put it in an array (if it isn't fetched that way > already). The simplest way to encode your data in JSON is to use the > json_encode function (http://se.php.net/manual/en/function.json-encode.php), > which takes an array and outputs a JSON string representation of the array. > Non-associative arrays are output as JSON arrays; associative arrays are > output as JSON object maps (see examples on the PHP json_encode page). > json_encode is included in PHP 5.2+ and is available as a module for older > PHP versions. -- You received this message because you are subscribed to the Google Groups "Google Visualization API" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/google-visualization-api?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
