$result = $the_main->edit_mediapartner(); if (isset($result)) { $_SESSION['Result'] = 'Success'; echo 'Success'; } } } if (isset($_POST['action']) && $_POST['action'] == 'mediapartner_edit_request') { if (isset($_POST['sId'])) { $_SESSION['mediapartner_edit'] = $_POST['sId']; } } if (isset($_POST['action']) && $_POST['action'] == 'mediapartner_order') { $the_main = new main\main(); foreach ($_POST['order'] as $order) { $the_main->mediapartner_order($order[0], $order[1]); } } /* ************************** Speakers *************************** */ /*///////////// Add new speaker ///////////////*/ if (isset($_POST['action']) && $_POST['action'] == 'add_new_speaker') { $the_main = new main\main(); $result = $the_main->save_speaker(); if (isset($result)) { $_SESSION['Result'] = 'Success';