Login   Register  
PHP Classes
elePHPant
Icontem

File: example.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Matus SOPKO  >  SQL Query  >  example.php  >  Download  
File: example.php
Role: Example script
Content type: text/plain
Description: example
Class: SQL Query
Generates SQL Query from dynamic parameters
Author: By
Last change:
Date: 2004-06-01 05:42
Size: 300 bytes
 

Contents

Class file image Download
<?
        $sql 
= new SqlQuery("insert");
    
$sql -> Add("col","col1");
    
$sql -> Add("col","col2");
    
$sql -> Add("value",$val1);
    
$sql -> Add("value",$val2);
    
$sql -> Add("table","table");
    
$sql -> Add("where","col1='something'");
    
$sql -> Add("orderby","col1'");
    echo 
$sql->toSql();
    
?>