-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathaccessdelb.php
71 lines (69 loc) · 2.06 KB
/
accessdelb.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
68
69
70
71
<html>
<head><title>WaterCan supply</title>
<script type="text/javascript">
function fun(){
var a=document.forms["myacessb"]["id"].value;
if(a==""){
alert("Please Enter Worker's id");
return false;
}
}
</script>
</head>
<body style="background-image:url(imagesd.jpg);background-repeat:no-repeat;background-size:100% 125%;background-attachment:fixed">
<header>
<h1><center><i><b>DAVANGERE WATERCAN SUPPLY</b></i></center></h1>
<h2><center><i><b>REPORTING DELIVERY</b></i></center></h2>
</header>
<br>
<br>
<?php
if(isset($_POST['id'])){
$id = $_POST['id'];
}
if(isset($_POST['PhoneNo'])){
$PhoneNo = $_POST['PhoneNo'];
}
$connection = mysqli_connect("localhost","root","") or die("coudnt connect to the server");
$db = mysqli_select_db($connection,"watersupply") or die("coudnt select the database");
$query3="SELECT ordno,name,PhoneNo,address,landmark,noc,amt,date FROM profrdel WHERE workerid=$id";
$result = mysqli_query($connection,$query3) or die("Querry failed:".mysqli_error($connection));
echo "<table border='1' align='center' frame='box' bgcolor='#00bfff'>";
echo "<tr>";
echo "<th>Order No</th><th>Name</th><th>Phone No</th><th>Adrdess</th><th>Landmark</th><th>No of Cans</th><th>Amount</th><th>Date</th>";
echo "</tr>";
while($row=mysqli_fetch_array($result))
{
echo "<tr>";
echo "<td>",$row['ordno'],"</td><td>",$row['name'],"</td><td>",$row['PhoneNo'],"</td><td>",$row['address'],"</td><td>",$row['landmark'],"</td><td>",$row['noc'],"</td><td>",$row['amt'],"</td><td>",$row['date'],"</td>";
echo "</tr>";
}
echo "</table>";
mysqli_close($connection);
?>
<br>
<br>
<center>
<form id="myacessb" action="delanddele.php" method="post">
<table>
<tr>
<td>
<b><i>Worker's id :</i></b>
</td>
<td>
<input type="text" placeholder="Worker's id" name="id">
</td>
</tr>
</center>
</table>
<button style="color:blue;border-radius:100px;" onclick="return fun()"><b>DELIVERED</b></button>
</form>
<br>
<br>
<center>
<form action="home.html" method="post">
<button style="color:blue;border-radius:100px;"><b>HOME</b></button>
</form>
</center>
</body>
</html>