PHP Classes

File: Example2.php

Recommend this page to a friend!
  Classes of Atul Hansaliya   Simple Database Class   Example2.php   Download  
File: Example2.php
Role: Example script
Content type: text/plain
Description: Basic example file
Class: Simple Database Class
Execute MySQL queries from lists of parameters
Author: By
Last change: Basci example-2 file
Date: 16 years ago
Size: 504 bytes
 

Contents

Class file image Download
<?php ob_start();
/*

Developed by Atul Hansaliya
More details : http://www.beyondmart.com

*/

if(!isset($objb))
{
    include(
"myclass.php");
   
$objb= new mysqldb("connection.php");
}

// In following example you have to pass value as per argument

// Select query
$qry=$objb->selectquery("tablename","*","where id=2"); // will return records of mysql_query() function

while($rm=mysql_fetch_array($qry,MYSQL_ASSOC))
{
/// here you can read data
// $name=$rm['name'];

}


?>