Login   Register  
PHP Classes
elePHPant
Icontem

File: test_class.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Mustafa Berkan BICER  >  MYDB Class  >  test_class.php  >  Download  
File: test_class.php
Role: Example script
Content type: text/plain
Description: Test File
Class: MYDB Class
Execute MySQL queries from lists of parameters
Author: By
Last change:
Date: 2008-01-26 04:42
Size: 728 bytes
 

Contents

Class file image Download
<?php

    
include("db.class.php");
    
    
define("DBSERVER","localhost");
    
define("DBUSER","");
    
define("DBPASSW","");
    
define("DBNAME","");
    
    
$mydba=new dbOpts();
    
$mydba->opendb();
    
    
//$my_res=$mydba->select_sql(array("*"),"table_name");
    //$my_res=$mydba->select_sql(array("*"),"table_name","where_field_name='where_field_val'");
    //$my_res=$mydba->update_sql("table_name",array("field1","field2",....),array("val1","val2",....),"where_field_name='where_field_val'");
    //$my_res=$mydba->insert_sql("table_name",array("field1","field2",....),array("val1","val2",....));
    //$my_res=$mydba->delete_sql("table_name","where_field_name='where_field_val'");
    //$my_res=$mydba->execute_sql("enter_here_your_sql");
    
?>