-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsalmon_edit.php
55 lines (46 loc) · 1.51 KB
/
salmon_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
<?php
require_once("header.php");
require_once("sidebar.php");
$id=$_GET['id'];
$ss=$conn->query("SELECT * FROM `salary_month` WHERE id=$id");
$st=$ss->fetch_assoc();
if(isset($_POST['salary_month'])){
$rs=$_POST['salary_month'];
$conn->query("UPDATE `salary_month` SET `month`='$rs' WHERE id=$id");?>
<script>
window.location.href="salarymonth.php";
</script>
<?php
}
?>
<section class="content-header">
<div class="container-fluid">
<div class="row mb-2">
<div class="col-sm-6">
<h1>Update month</h1>
</div>
<div class="col-sm-6">
<ol class="breadcrumb float-sm-right">
<li class="breadcrumb-item"><a href="#">Home</a></li>
<li class="breadcrumb-item active"></li>
</ol>
</div>
</div>
</div><!-- /.container-fluid -->
</section>
<section class="content">
<div class="container-fluid">
<div class="row">
<div class="col-md-12">
<div class="card">
<div class="card-header">
<h3 class="card-title">Salary month</h3>
</div>
<!-- /.card-header -->
<div class="card-body">
<form action="" method="post">
<input type="text" name="salary_month" class="form-control"value="<?php echo $st['month']?>" placeholder="enter month name">
<br>
<input type="Submit" value="Submit" class="btn btn-info"> <br>
</form>
<?php require("footer.php"); ?>