-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBBTDetails.php
More file actions
71 lines (70 loc) · 2.11 KB
/
BBTDetails.php
File metadata and controls
71 lines (70 loc) · 2.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
<!DOCTYPE html>
<html lang="en">
<head>
<title>Details</title>
<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="">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap-theme.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>
<style>
.jumbotron{
margin-top: 20%;
background: white;
}
p{
text-align: left;
}
body{
background: grey;
}
</style>
</head>
<body>
<?php
include("db_connect.php");
if(isset($_GET['bookid'])){
$bookid = $_GET['bookid'];
if (is_numeric($bookid)){
$query = "SELECT * FROM ReadBooks WHERE ID = '$bookid'";
$result = mysqli_query($conn, $query);
$row = mysqli_fetch_assoc($result);
$title = $row['Title'];
$description = $row['Description'];
$genre = $row['Genre'];
$bookid = $row['ID'];
$image = $row['Image'];
}
?>
<div class="container">
<div class="row">
<div class="col-xs-12">
<div class="jumbotron">
<h4>Title:</h4><?php echo $title, '<hr>'?>
<h4>Description:</h4><?php echo $description, '<hr>'?>
<h4>Genre:</h4><?php echo $genre, '<hr>'?>
<h4>Read book:</h4><?php echo "<a href ='searchScript.php?bookid=$bookid'/><img title = '$title' src='BBTBooklistScript.php?bookid=$bookid'/></a><hr>";?>
<a href='BBTHomePage.php'><button type="button" class="btn btn-default btn-md" type="submit" name="Submit">
<span class="glyphicon glyphicon-chevron-left"></span>  Back to Home</button></a>
</div>
</div>
</div>
</div>
<?php
}
?>
<style>
img{
height:250px;
width:200px;
border-radius: 5px;
padding: 10px;
background-color:grey;
}
</style>
</body>
</html>