PHP Classes
elePHPant
Icontem

File: README

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of L Bharti  >  Query To JSON  >  README  >  Download  
File: README
Role: Documentation
Content type: text/plain
Description: README
Class: Query To JSON
Convert MySQL query results to JSON format
Author: By
Last change:
Date: 7 years ago
Size: 395 bytes
 

Contents

Class file image Download
Author : Loknath Bharti
Email : lbharti at gmail dot com

class : QueryToJson
Functions

queryToJson($result, $header) :
It converts the mysql query result into a JSON string with $header 
as the top header with column header as the header for other data values

Arguments : 

	$result : mysql result returned by mysql_query()
	$header : top header of the JSON object

Return : the JSON string