-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathplaygame.php
31 lines (25 loc) · 851 Bytes
/
playgame.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
<?php
$title = 'Game';
include 'header.php';
?>
<?php
$mid = $_GET['id'];
$sql = "SELECT gameName, gameGrade, gameCategory, gameSubject, gameDescription, gameInstructions, gameAccess, devID, gFile
FROM Game WHERE gameID = $mid";
if (mysqli_num_rows($result) > 0) {
$row = mysqli_fetch_assoc($result);
$gName = $row["gameName"];
$gGrade = $row["gameGrade"];
$gCategory = $row["gameCategory"];
$gSubject = $row["gameSubject"];
$gDesc = $row["gameDescription"];
$gInst = $row["gameInstructions"];
$gAccess = $row["gameAccess"];
$devID = $row["devID"];
$gFileName = $row["gFile"];
}
else{
// Error MSG
}
?>
<?php include('./footer.php'); ?>