PHP Classes


Recommend this page to a friend!
  Classes of Shibly  >  MyJSON  >  >  Download  
Role: Documentation
Content type: text/plain
Description: Documentation
Class: MyJSON
Return MySQL query results in JSON format
Author: By
Last change: Documentation added
Got the results with some nice fatal error :)
Date: 9 months ago
Size: 388 bytes


Class file image Download
# MySql_to_Json

`mysql_to-json` is a php class that will allow you to create json string from a mysql query with the MySQLtoJSON method with 1 or 2 parameters.

1. $query - The mysql query (required)
2. $indented - If true, the return string will be indented

`mysql_to_json` is build with the top of PDO. It is still in development stage. This is the first release. Feel free to fork.  
For more information send a message to info at phpclasses dot org.