Action = "insert"; $InsertQuery->Table = "`material_type`"; $InsertQuery->bindColumn("idmaterial_type", "s", "" . ((isset($_POST["idmaterial_type"])) ? $_POST["idmaterial_type"] : "") . "", "WA_DEFAULT"); $InsertQuery->bindColumn("name_material", "s", "" . ((isset($_POST["name_material"])) ? $_POST["name_material"] : "") . "", "WA_DEFAULT"); $InsertQuery->bindColumn("desc_material", "s", "" . ((isset($_POST["desc_material"])) ? $_POST["desc_material"] : "") . "", "WA_DEFAULT"); $InsertQuery->bindColumn("company_id", "s", "" . ((isset($_POST["company_id"])) ? $_POST["company_id"] : "") . "", "WA_DEFAULT"); $InsertQuery->saveInSession(""); $InsertQuery->execute(); $InsertGoTo = "material.php"; if (function_exists("rel2abs")) $InsertGoTo = $InsertGoTo ? rel2abs($InsertGoTo, dirname(__FILE__)) : ""; $InsertQuery->redirect($InsertGoTo); } ?>