Ejemplo n.º 1
0
include '../class/class_sections.php';
$section = new Sections();
if (!isset($_SESSION['username'])) {
    header("Location: login.php");
}
//echo $_SESSION['admin_login'];
$id = $_GET['id'];
$section->sectionData($id);
if ($_SERVER["REQUEST_METHOD"] == "POST") {
    $id = mysql_escape_string($_POST['section_id']);
    $name = mysql_escape_string($_POST['name']);
    $course_id = mysql_escape_string($_POST['course_id']);
    $section->section_id = $id;
    $section->name = $name;
    $section->course_id = $course_id;
    $section->sectionEdit($id);
}
?>
<!DOCTYPE html>
<html lang="en">

<head>

    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="">
    <meta name="author" content="">

    <title>E-Blast</title>