-
Notifications
You must be signed in to change notification settings - Fork 0
/
schedule_edit.php
53 lines (50 loc) · 1.38 KB
/
schedule_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
<?php
include('connection.php');
include('topnav.php');
?>
<?php
$query = 'SELECT * FROM schedule
WHERE
schedule_id ='.$_GET['id'];
$result = mysqli_query($db, $query) or die(mysqli_error($db));
while($row = mysqli_fetch_array($result))
{
$zz= $row['schedule_id'];
$i= $row['DAY'];
$a= $row['START_TIME'];
$b= $row['END_TIME'];
}
$id = $_GET['id'];
?>
<div class="container">
<div class="card card-register mx-auto mt-5">
<div class="card-header">Edit Records</div>
<div class="card-body">
<form role="form" method="post" action="schedule_edit1.php">
<div class="form-group">
<div class="col-md-12">
<input type="hidden" name="schedule_id" value="<?php echo $zz; ?>" />
</div>
</div>
<div class="form-group">
<div class="col-md-12">
<input class="form-control" placeholder="DAY" name="DAY" value="<?php echo $i; ?>">
</div>
</div>
<div class="form-group">
<div class="col-md-12">
<input class="form-control" placeholder="START TIME" name="START_TIME" value="<?php echo $a; ?>">
</div>
</div>
<div class="form-group">
<div class="col-md-12">
<input class="form-control" placeholder="END TIME" name="END_TIME" value="<?php echo $b; ?>">
</div>
</div>
<button type="submit" class="btn btn-primary btn-block">Update Record</button>
</form>
</div>
</div>
</div>
<!-- /.container-fluid -->
</body>