ob_start(); include '../includes/db_func.php'; include 'includes/classes/Admin.php'; include 'check_login.php'; include 'includes/classes/video_event.php'; $event = Video_event::find($_GET['id'],0); if($_POST['edit']) { $name = $_POST['name']; $title = $_POST['title']; $desc = $_POST['desc']; $params = array('title' => $title,'name'=>$name,'desc'=>$desc); $event = new Video_event($params); $event->edit($_GET['id']); header('Location:video_events.php'); } if($_POST['cancel']) { header('Location:video_events.php'); } $header_links = "Video Events | Edit"; $header_button_link= 'add_video_events.php'; include 'includes/header.php'; include 'includes/side_bar.php'; include 'includes/center_start.php'; ?>