PHP Classes


Recommend this page to a friend!
  Classes of L Bharti  >  Query To JSON  >  README  >  Download  
Role: Documentation
Content type: text/plain
Description: README
Class: Query To JSON
Convert MySQL query results to JSON format
Author: By
Last change:
Date: 14 years ago
Size: 395 bytes


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

class : QueryToJson

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

For more information send a message to info at phpclasses dot org.