trim($_POST); if(!$objQuestioning->valid($_POST)){ $saveId = $objQuestioning->SaveQuestioning($_POST); if(!$_POST['update_id']){ $data = array('parent_table'=>"questioning",'parent_table_id'=>$saveId,'data'=>$_POST); $objForum->SaveTopic($data,$_FILES); } header("location:" . URL . "admin.php?action={$rule['action']}"); } }elseif(isset($_GET['editID']) && $_GET['editID']>0){ $objQuestioning->admin_infoEditQuestioningOne($_GET['editID']); } $objQuestioning->viewAllQuestioning(); $objQuestioning->displayQuestioning(); ?>