-
Notifications
You must be signed in to change notification settings - Fork 0
/
check.php
61 lines (59 loc) 路 2.02 KB
/
check.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
<?php
session_start();
$conn = mysqli_connect('localhost','root','','quiz') or die(mysqli_error($conn));
$stmt = $conn->prepare("select * FROM types where 1");
$stmt->execute();
$result = $stmt->get_result();
// $row_in = $result->fetch_assoc();
// $array = $row_in['email'];
$_SESSION['count'] = 0;
$_SESSION['ansewr'] = 0;
$_SESSION['score'] = 0;
$_SESSION['validID'] = true;
// echo $_SESSION['userID'];
// echo $_SESSION['user'];
?>
<!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 rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css" integrity="sha512-9usAa10IRO0HhonpyAIVpjrylPvoDwiPUiKdWk5t3PyolY1cOd4DSE0Ga+ri4AuTroPR5aQvXU9xC6qOPnzFeg=="
crossorigin="anonymous" referrerpolicy="no-referrer"/>
<link rel="stylesheet" href="CSS/check.css">
<title>Document</title>
</head>
<body>
<?php include('nav.php')?>
<section class = "main">
<div class = "inside">
<div class = "choice">
<p>Choose Your Ohoice ...</p>
<div class = "back">
<a href="menu.php"><button><i class="fa-solid fa-caret-left"></i> Back</button></a>
</div>
</div>
<div class = "inside2">
<!-- first card -->
<?php
while($row = $result->fetch_assoc()):
?>
<div class = "outInner">
<div class = "inner">
<img src="IMG/<?php echo $row['img'];?>" alt="" srcset="">
</div>
<div class = "desc">
<p> <?php echo $row['desc'];?></p>
</div>
<div class="banner-btn">
<a href="game.php?play=<?php echo $row['typeID'];?>"><span></span> PLAY</a>
</div>
</div>
<?php endwhile; ?>
<!-- fin card -->
</div>
</div>
</section>
</body>
</html>