-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtotalsal1.php
53 lines (49 loc) · 1.05 KB
/
totalsal1.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
session_start();
if (!isset($_SESSION["manager"])) {
header('Location: index.php');
exit;
}
require_once('mysql_conn.php');
$sql ="SELECT * FROM salary";
$result = mysql_query($sql);
while ($row1 = mysql_fetch_assoc($result))
{
}
?>
<html>
<head><title>Calculation For Total Salary</title></head>
<center>
<h1>Salary Information</h1>
<hr>
<form>
<table>
<tr><th>Select Department: </th>
<td><select name="month">
<option>January</option>
<option>February</option>
<option>March</option>
<option>April</option>
<option>May</option>
<option>June</option>
<option>July</option>
<option>August</option>
<option>September</option>
<option>October</option>
<option>November</option>
<option>December</option>
</select>
</td>
</tr>
<tr><th> </th>
<td>
<input type="submit" name="submit" value="Search" />
</td>
</tr>
</table>
</form>
<br>
<a href="manager.php">Back to admin page</a>
<a href="logout.php"><h3>Logout</h3></a>
</center>
</html>