-
Notifications
You must be signed in to change notification settings - Fork 0
/
enrollment_search.php
71 lines (50 loc) · 2.16 KB
/
enrollment_search.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
<?php include 'connection.php';
include 'topnav.php'
?>
<div class="contanier">
<div class="card card-register mx-auto mt-5">
<div class="card-header"> <h2>Check Record</h2> </div>
<div class="card-body">
<?php
$query = 'SELECT * FROM enrollment
WHERE
ENROLLMENT_ID ='.$_GET['id'];
$result = mysqli_query($db, $query) or die(mysqli_error($db));
while($row = mysqli_fetch_array($result))
{
$zz= $row['ENROLLMENT_ID'];
$i= $row['DATE_ENROLLED'];
$a=$row['TERM'];
}
$id = $_GET['id'];
?>
<form role="form" method="post" action="enrollment.php">
<div class="form-group">
<input type="hidden" name="id" value="<?php echo $zz; ?>" />
</div>
<div class="form-group">
<input class="form-control" placeholder="Date Enrolled" name="DATE_ENROLLED" value="<?php echo $i; ?>">
</div>
<div class="form-group">
<input class="form-control" placeholder="Term" name="TERM" value="<?php echo $a; ?>">
</div>
<button type="submit" class="btn btn-default">Return to main menu</button>
</form>
</div>
</div>
</div>
<!-- /.container-fluid -->
</div>
<!-- /#page-wrapper -->
</div>
<!-- /#wrapper -->
<!-- jQuery -->
<script src="js/jquery.js"></script>
<!-- Bootstrap Core JavaScript -->
<script src="js/bootstrap.min.js"></script>
<!-- Morris Charts JavaScript -->
<script src="js/plugins/morris/raphael.min.js"></script>
<script src="js/plugins/morris/morris.min.js"></script>
<script src="js/plugins/morris/morris-data.js"></script>
</body>
</html>