-
Notifications
You must be signed in to change notification settings - Fork 3
/
card.php
81 lines (56 loc) · 2.61 KB
/
card.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
<?php
include 'connect.php';
include "nav.php";
$query = " SELECT * FROM `cards` order by id DESC";
$queryfire = mysqli_query($conn, $query);
$num = mysqli_num_rows($queryfire);
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous">
<link rel="stylesheet" href="css/card.css">
</head>
<body>
<body>
<section class="container">
<div style="margin-top:100px ;" class="row">
<div>
<h1 class="title mb-5">All
<small class="text-muted">Programs</small>
</h1>
</div>
<?PHP
if ($num > 0) {
while ($products = mysqli_fetch_array($queryfire)) {
?>
<div class="col-lg-4 col-md-6 col-sm-12 mb-5" style="margin:auto;">
<form action="playVideo.php" method="GET">
<div class="card" style="width: 18rem;margin:auto;">
<img src="uploads/<?= $products['images'] ?>" class="card-img-top" alt="..." height="300px">
<div class="card-body mt-3">
<h5 class="card-title"><?php echo $products['name']; ?></h5>
</p>
<button type="submit" class="btn btn-info " name="enter" style="background:linear-gradient(45deg, #7EC9F5, #3957ED); width: 100%;color:#fff5ee"><b>Details</b></button>
<input type="hidden" name="p_name" value="<?php echo $products['name']; ?>">
</div>
</div>
</form>
</div>
<?php
}
}
?>
</div>
</section>
<script src="https://kit.fontawesome.com/d55bbcbd90.js" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-MrcW6ZMFYlzcLA8Nl+NtUVF0sA7MsXsP1UyJoMp4YLEuNSfAP+JcXn/tWtIaxVXM" crossorigin="anonymous"></script>
</body>
</body>
</html>
<?php
include "footer.php";
?>