This class can be used to convert data from MySQL query results into a JavaScript expression in JavaScript Object Notation.
It takes a MySQL query result handle and retrieves the query result column names and the query result data.
The class generates the definition of a JavaScript object in JSON that contains an array of a rows of query result data.
Each array element represents an object with the properties set to the query result column names. The property values are the query results for the respective row and column.
|
Name: |
MySQL to JSON |
Base name: |
mysql2json |
Description: |
Convert data from MySQL query results into JSON |
Version: |
1.0.0 |
PHP version: |
- |
License: |
The PHP License |
|
|
July 2006
Number 3 |
Since the raise of interest on the development AJAX based applications, JavaScript Object Notation (JSON) has became a relevant topic.
JSON is often used by Web server applications to serialize objects that are recreated on the browser side by Javascript code that handles AJAX based interactions.
A great part of the AJAX applications are database driven. Frequently, PHP applications retrieve data from MySQL databases to respond to AJAX requests.
This class helps implementing AJAX based PHP database driven applications with MySQL by serializing query results using JSON.
Manuel Lemos |
|
Pages that reference this package |
|
Latest pages that reference packages
|
Applications that use this package |
|
No pages of applications that use this class were specified.
If you know an application of this package, send a message to the author to add a link here.
|
Files |
|