PHP Classes

File: test.php

Recommend this page to a friend!
  Classes of Suneel Kanuri   class.database   test.php   Download  
File: test.php
Role: Example script
Content type: text/plain
Description: Example File
Class: class.database
Build and execute MySQL database queries
Author: By
Last change:
Date: 18 years ago
Size: 675 bytes
 

Contents

Class file image Download
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Test Database Class</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
    <?php
       
require_once 'class.database.php';
       
$dbObject=new database('yourDatabaseName','yourDBUserName','yourDBPassword');
       
$var=array();
       
$var['table_name']='finance';
       
$var['conditionArray']=array(
                                   
'type'=>'b,w'
                               
);
       
$var['conditionCut']='b';
       
$var['conditionType']='or';
       
$var['conditionArrayType']='skmv';
       
$result=$dbObject->dB_sknife($var);
       
var_dump($result);
   
?>
</body>
</html>