-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathseenot.php
67 lines (51 loc) · 1.56 KB
/
seenot.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
61
62
63
64
65
66
67
<?php
session_start();
?>
<!DOCTYPE html>
<html>
<head>
<title> approval </title>
<link href="http://fonts.googleapis.com/css?family=Source+Sans+Pro:200,300,400,600,700,900" rel="stylesheet" />
<link href="css/second.css" rel="stylesheet" type="text/css" media="all" />
<link href="css/fonts1.css" rel="stylesheet" type="text/css" media="all" />
</head>
<body>
<div class="navbar" id="menu">
<a href="#" style="float: left"><strong>BUY AND SELL NITC</strong></a>
<div class="dropdown">
<a href="index1.php" style="background-color: #45a049;">Signout</a>
<a href="about.php">About</a>
<a href="adduser.php">Add User</a>
<a href="removeuser.php" >Remove User</a>
<a href="approvalitem.php" >Approve Items</a>
<a href="appmodbid.php" > Approve Modifications</a>
<a href="homepageadmin.php" style="color:orange">Home</a>
</div>
</div>
<?php
$conn = new mysqli("localhost", "root", "Hello@123", "se");
if ($conn->connect_error) {
die("Connection failed: " . $conn->connect_error);
}
$option=mysqli_real_escape_string($conn, $_POST['itemid']);
$dura=mysqli_real_escape_string($conn, $_POST['duration']);
$sql = "UPDATE modifytime SET approval='reject' WHERE itemid=$option";
if ($conn->query($sql) === TRUE) {
echo "Record updated!";
} else {
echo "Error updating record: " . $conn->error;
}
?>
<footer style=" clear: both;
position: relative;
z-index: 10;
height: 3em;
margin-top: -3em;background-color: #333;">
<center>
<?php
echo $_SESSION['username'];
?>
</center>
</footer>
</body>
</html>