<html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>View</title> <link rel="stylesheet" type="text/css" href="../public/myStyle.css"> <link rel="stylesheet" type="text/css" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css"> </head> <body> <?php error_reporting(E_ALL & ~E_DEPRECATED & ~E_NOTICE); include_once "../../../" . "vendor/autoload.php"; use src\bitm\SEIP107992\book\book; $id = $_GET['var']; $book = new book(); $books = $book->view($id); ?> <div class="container"> <div class="row"> <div class="com-sm-12"> <div class="jumbotron header"> <h3>Full View</h3> </div> </div> </div> <div class="row"> <div class="col-sm-6 col-sm-offset-3 bookview"> <?php //var_dump($books) ?>
<html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>Edit</title> <link rel="stylesheet" type="text/css" href="../public/myStyle.css"> <link rel="stylesheet" type="text/css" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css"> </head> <body> <?php error_reporting(E_ALL & ~E_DEPRECATED & ~E_NOTICE); include_once "../../../" . "vendor/autoload.php"; use src\bitm\SEIP107992\book\book; $book_id = $_GET['var']; $book = new book(); $books = $book->view($book_id); ?> <div class="container"> <div class="row"> <div class="com-sm-12"> <div class="jumbotron header"> <h3>Update Book Name</h3> </div> </div> </div> <div class="row"> <div class="col-sm-6 col-sm-offset-3"> <form action="update.php?var=<?php echo $book_id; ?>