defineUser($conn, $database_table); if(isset($_GET['ISBN']) && !empty($_GET['ISBN'])){ $user->arduino_response($_GET['ISBN']); } if(isset($_POST['ISBN']) && isset($_POST['name']) && isset($_POST['page']) && isset($_POST['author'])){ $ISBN = strip_tags($_POST['ISBN']); $name = strip_tags($_POST['name']); $page = strip_tags($_POST['page']); $author = strip_tags($_POST['author']); $user->saveNewBook($ISBN, $name, $page, $author); } if(isset($_GET['delete'])){ $user->deleteEntry($_GET['delete']); } ?>
ISBN | Name | Page | Author | Delete |
---|