-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
35 lines (35 loc) · 937 Bytes
/
index.php
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
<html>
<head>
<title>MyMovieBooking</title>
<link rel="stylesheet" href="styles.css?v=<?php echo time(); ?>">
</head>
<body>
<?php
include 'header.php';
?>
<div class="body-contents">
<div class="movieList">
<?php
include 'includes/config.php';
$sel = "SELECT * FROM movies";
$rs = $conn->query($sel);
while($rws = $rs->fetch_assoc()){
?>
<div class="movies">
<a href="booking.php?id=<?php echo $rws['movieID'] ?>">
<img src="images/<?php echo $rws['image'];?>" width="200" height="200"> </a>
<div class="movie-details">
<h3> <a href="booking.php?id=<?php echo $rws['movieID'] ?>"><?php echo ''.$rws['movieName'];?></a>
<br />
<a target="_blank" href="<?php echo $rws['trailerURL'] ?>">Watch Trailer</a>
</h3>
<h4>Cast :<?php echo $rws['cast'];?></h4>
</div>
</div>
<?php
}
?>
</div>
</div>
</body>
</html>