forked from saivinayb/Online_Movie_Gallery
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcustomer_explore.php
88 lines (74 loc) · 1.5 KB
/
customer_explore.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
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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
<!DOCTYPE html>
<html>
<head>
<title>EXPLORE CLIPS</title>
<meta name="viewport" content="width=device=width, initial-scale=1.0">
</head>
<body>
<style type="text/css">
table {
font-family: arial, sans-serif;
border-collapse: collapse;
width: 100%;
}
td, th {
border: 1px solid #dddddd;
text-align: left;
padding: 8px;
}
tr:nth-child(even) {
background-color: #dddddd;
}
body
{
background-image: url('clou.jpeg');
}
.responsive {
width: 100%;
max-width: 400px;
height: auto;
}
h3,h4
{
font-family: cambria;
}
</style>
<form method="post">
</form>
<?php
session_start();
$x=$_GET['x'];
$xx=$_SESSION['id'];
$yy=$_SESSION['name'];
if(is_null($x))
{
header("location: index.php?xx=69");
}
$cr_id=$_SESSION["id"];
$con = new mysqli('localhost', 'root', '', 'mov_gallery');
if(!$con)
{
echo 'Please check your connection';
}
$query = "SELECT * FROM clips ORDER BY title DESC ";
$result = mysqli_query($con, $query);
echo '<table>';
echo'
<tr>
<th>Genre</th>
<th>Hyperlink</th>
</tr>';
while($row = mysqli_fetch_array($result))
{
echo '
<tr>
<td>
'.$row['genre'].'
<td>
';
echo "<a href='purchase.php?id=".$row['vid_id']."'>".$row['title']." - ".$row['genre']."</a></br>";
}
echo '</table>';
?>
</body>
</html>