MyJSON – Work with MySQL + JSON

MyJSON – Work with MySQL + JSON

MyJSON is a PHP5 Class, with it, you are now able to:

  1. Create JSON string from a MySQL Query
  2. Insert JSON content into a MySQL Table
  3. Create/Insert will work as export! So you is a new experience on backups: with JSON !
  4. The JSON created can be indented or not, you choose
  5. Easy to get class-failure errors
  6. Examples of both functions are included

Creating JSON from MySQL query:

echo $json->SQLtoJSON("SELECT * FROM your_table");

Creating indented JSON from MySQL Query:

echo $json->SQLtoJSON("SELECT * FROM your_table", true);

Creating MySQL QUery from JSON :

$json->JSONtoSQL($your_json, 'your_table');

Rating will be really appreciated.
Questions? Suggestions? Please, don’t doubt to leave a comment!

More items by Sourcegeek

Filex - File Uploader with Expiration Invento - Simple Inventory Sytem TrackIt - Track your time HackerCatcher v2 - Protect your Site ParseRSS - Parse a RSS with PHP5 Class AdvPlugin - Advanced Plugin System MyJSON - Work with MySQL + JSON