Location: PHPKode > scripts > SQL Query > sql-query/example.php
<?
        $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();
	
?>
Return current item: SQL Query