Action = "insert"; $InsertQuery->Table = "`rsl_category`"; $InsertQuery->bindColumn("name_rslcat", "s", "" . ((isset($_POST["name_rslcat"])) ? $_POST["name_rslcat"] : "") . "", "WA_DEFAULT"); $InsertQuery->bindColumn("comment_rslcat", "s", "" . ((isset($_POST["comment_rslcat"])) ? $_POST["comment_rslcat"] : "") . "", "WA_DEFAULT"); $InsertQuery->bindColumn("user_id", "s", "" . ((isset($_POST["user_id"])) ? $_POST["user_id"] : "") . "", "WA_DEFAULT"); $InsertQuery->bindColumn("company_id", "s", "" . ((isset($_POST["company_id"])) ? $_POST["company_id"] : "") . "", "WA_DEFAULT"); $InsertQuery->bindColumn("department_id", "s", "" . ((isset($_POST["department_id"])) ? $_POST["department_id"] : "") . "", "WA_DEFAULT"); $InsertQuery->bindColumn("created_at", "s", "" . ((isset($_POST["created_at"])) ? $_POST["created_at"] : "") . "", "WA_DEFAULT"); $InsertQuery->bindColumn("updated_at", "s", "" . ((isset($_POST["updated_at"])) ? $_POST["updated_at"] : "") . "", "WA_DEFAULT"); $InsertQuery->saveInSession(""); $InsertQuery->execute(); $InsertGoTo = "rsl-category.php"; if (function_exists("rel2abs")) $InsertGoTo = $InsertGoTo ? rel2abs($InsertGoTo, dirname(__FILE__)) : ""; $InsertQuery->redirect($InsertGoTo); } ?>