<?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;
}
?>
|