<? $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(); ?>