PHP Classes

File: example.php

Recommend this page to a friend!
  Classes of Adnan Siddiqi  >  MySQL to JSON  >  example.php  >  Download  
File: example.php
Role: Example script
Content type: text/plain
Description: Example
Class: MySQL to JSON
Convert data from MySQL query results into JSON
Author: By
Last change: Change in Email Address
Date: 11 years ago
Size: 591 bytes


Class file image Download
* Filename: example.php
* Purpose: Example file which is utilising mysql2json class
* Author: Adnan Siddiqi <>
* License: PHP License
* Date: Tuesday,June 21, 2006
//this is db connection file and has nothing to do withe the class itself
//any SQL select Query
$sql="select * from students s";
$result=@mysql_query($sql) or die(mysql_error());
//calling class
$objJSON=new mysql2json();

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