-
Notifications
You must be signed in to change notification settings - Fork 0
/
section_edit.php
60 lines (46 loc) · 2.33 KB
/
section_edit.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
<?php include 'connection.php';
include 'topnav.php'; ?>
<div class="contanier">
<div class="card card-register mx-auto mt-5">
<?php
$query = 'SELECT * FROM section
WHERE
SECTION_ID ='.$_GET['id'];
$result = mysqli_query($db, $query) or die(mysqli_error($db));
while($row = mysqli_fetch_array($result))
{
$zz= $row['SECTION_ID'];
$i= $row['NAME'];
$a=$row['COURSE_ID'];
$b=$row['SCHEDULE_ID'];
$c=$row['INSTRUCTION_ID'];
}
$id = $_GET['id'];
?>
<div class="col-lg-12">
<h2>Edit Records</h2>
<div class="col-lg-6">
<form role="form" method="post" action="section_edit1.php">
<div class="form-group">
<input type="hidden" name="id" value="<?php echo $zz; ?>" />
</div>
<div class="form-group">
<input class="form-control" placeholder="Name" name="NAME" value="<?php echo $i; ?>">
</div>
<div class="form-group">
<input class="form-control" placeholder="Course ID" name="COURSE_ID" value="<?php echo $a; ?>">
</div>
<div class="form-group">
<input class="form-control" placeholder="Schedule ID" name="SCHEDULE_ID" value="<?php echo $b; ?>">
</div>
<div class="form-group">
<input class="form-control" placeholder="Instruction ID" name="INSTRUCTION_ID" value="<?php echo $c; ?>">
</div>
<button type="submit" class="btn btn-default">Update Record</button>
</form>
</div>
</div>
</div>
<!-- /.container-fluid -->
</div>
<?php include 'footer.php'; ?>