-
Notifications
You must be signed in to change notification settings - Fork 0
/
course_edit.php
51 lines (38 loc) · 1.79 KB
/
course_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
<?php include 'connection.php';
include 'topnav.php'; ?>
<div class="contanier">
<div class="card card-register mx-auto mt-5">
<?php
$query = 'SELECT * FROM course
WHERE
COURSE_ID ="'.$_GET['id'].'"';
$result = mysqli_query($db, $query) or die(mysqli_error($db));
while($row = mysqli_fetch_array($result))
{
$zz= $row['COURSE_ID'];
$i= $row['NAME'];
$c=$row['DESCRIPTION'];
}
$id = $_GET['id'];
?>
<div class="col-lg-12">
<h2>Edit Records</h2>
<div class="col-lg-6">
<form role="form" method="post" action="course_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="description" name="DESCRIPTION" 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'; ?>