PHP Classes

File: Example

Recommend this page to a friend!
  Classes of djomla   SQL builder   Example   Download  
File: Example
Role: Example script
Content type: text/plain
Description: Example file with usage
Class: SQL builder
Compose SQL queries from parameters
Author: By
Last change:
Date: 13 years ago
Size: 262 bytes
 

Contents

Class file image Download
<?php
$sql
= DBSQLiser::build('SELECT');
$sql->columns('something1');
$sql->from('table');
$sql->where('something = something');
$sql->orWhere('something1 = something1');
$sql->join('other_table', 'table.something = other_table.something1');
$sql->get_sql();
?>