<?php try { require_once 'private/LMS_Engine.php'; $engine = new LMS_Engine(); } catch (mysqli_sql_exception $e) { } if (isset($_POST)) { if (isset($_POST['Reg_Items'])) { require_once '../private/LMS_Engine.php'; $engine = new LMS_Engine(); $val = $engine->Add_Book($_POST['title'], $_POST['cat_id'], $_POST['author'], $_POST['publisher'], $_POST['publish_year'], $_POST['publish_address'], $_POST['call_id'], $_POST['copy_num'], $_POST['shelf_or_store']); header("Location: ../Librarian.php?page=add_remove"); exit; } } function get_Librarian_Add_User_Page() { header("Location: ../Librarian.php?page=add_user"); exit; } function get_Librarian_Manage_Books_Page() { header("Location: ../Librarian.php?page=library_books"); exit; } function get_Librarian_Add_New_Student_Page() { header("Location: ../Librarian.php?page=add_new_student"); exit; }