PHP Classes

File: usage.php

Recommend this page to a friend!
  Classes of syed abdul baqi   SQL Query Generator   usage.php   Download  
File: usage.php
Role: Example script
Content type: text/plain
Description: Example
Class: SQL Query Generator
Generate SQL queries from lists of parameters
Author: By
Last change:
Date: 14 years ago
Size: 607 bytes
 

Contents

Class file image Download
<?php
include 'dbquery.class.php';
$db = new dbQuery;

   echo
$db->selectQ('tbl_test');
// echo $db->selectQ('tbl_test', array('a', 'b', 'c', 'd'));
// echo $db->selectQ('tbl_test', array('a', 'b', 'c', 'd'), array('xyz' => 1, 'abc' => 2));
// echo $db->insertQ('tbl_test', array('a' => 1, 'b' => 2));
// echo $db->updateQ('tbl_test', array('a' => 1, 'b' => 2), array('x' => 32, 'y' => 43), FALSE);
// echo $db->updateQ('tbl_test', array('a' => 1, 'b' => 2), NULL, TRUE);
// echo $db->deleteQ('tbl_test', array('z' => 1), FALSE);
// echo $db->deleteQ('tbl_test', NULL, TRUE);
?>