PHP Classes
elePHPant
Icontem

File: SqlGenerateFunction

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Minnur Yunusov  >  SQL String Generator  >  SqlGenerateFunction  >  Download  
File: SqlGenerateFunction
Role: Example script
Content type: text/plain
Description: Additional function for the class
Class: SQL String Generator
Generate SQL queries from parameters
Author: By
Last change:
Date: 7 years ago
Size: 557 bytes
 

Contents

Class file image Download
<?php

 
/*
    Author: Minnur Yunusov
 
  */
   
    // sql_generate(args array, values array, table_name string, type int [, additional_string string] )
   
function sql_generate($args, $values, $table_name, $type, $additional_string = '')
    {
      require_once(
"requires/classes/T.SQLStringGenerator.class.php");
     
$CallClass = new SQLStringGenerator();
     
$CallClass -> load_vars($args);
     
$CallClass -> in_array_only($values);
     
$CallMethod = $CallClass -> type($type, $table_name, $additional_string);
      return
$CallMethod;
    }

?>