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
|