Recommend this page to a friend! | Stumble It! | Bookmark in del.icio.us |
Classes of Adnan Siddiqi | > | MySQL to JSON | > | README.txt | > | Download | ||
|
Download |
class name: mysql2json FUNCTION ========= getJSON($result,$num) The method which returns sql returned data from MYSQL database into JSON format.It takes two parameters: a)$result:resultset data returns from mysql_query() method. b)$num:Number of affected rows.Usually value returns from mysql_affected_rows(). If you find this piece of code useful, and need enhancements or find bugs... please do write to me, Thanks Adnan Siddiqi |