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 view this discussion on the web visit 
https://groups.google.com/d/msg/google-visualization-api/-/R8ltq5txJ18J.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-visualization-api?hl=en.

Reply via email to