-
Notifications
You must be signed in to change notification settings - Fork 0
/
dailyphp.php
125 lines (123 loc) · 2.76 KB
/
dailyphp.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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
<!DOCTYPE html >
<html>
<head>
<title>IoT Project</title>
<style>
body{
margin: 0px;
}
.both{
background: url(ind.jpg);
margin: 0px;
text-align: center;
}
.header{
padding: 50px;
width: 100%;
height: 100px;
margin: 0px;
text-align: center;
vertical-align: middle;
}
.logo-box{
width: 230px;
height: 210px;
margin-left: 650px;
/*border: black;
border-style: solid;
background-color: paleturquoise;
vertical-align: middle;*/
}
.middle{
width: 100%;
height:40px;
background-color: mediumseagreen;
}
ul{
list-style-type: none;
margin: 0;
padding: 0;
overflow: hidden;
}
li{
float: left;
border-right: 1px solid #bbb;
}
li:last-child{
border right: none;
}
li a{
display: block;
color: white;
text-align: center;
padding: 11px 130px;
text-decoration: none;
}
li a:hover:not(.active){
background-color: #111;
}
.active{
background-color: #4caf50;
}
.form-box{
font-size: 25px;
text-align: justify;
vertical-align: middle;
background-image: url(industry.jpg);
background-position: center;
background-repeat: none;
height: 100%;
padding: 10px;
margin: 0px;
}
</style>
</head>
<body>
<div class="both">
<div class="header">
<center><h1 style="font-size: 60px;">VIDA INDUSTRY</h1></center>
<! <img class="vida-logo" src="vida1.jpg" alt="vida-img">
</div>
<div class="logo-box">
</div>
</div>
<div class="middle">
<ul>
<li><a href="mainpage.html">Home</a></li>
<li><a class="active" href="daily.html">Daily</a></li>
<li><a href="weekly.html">Weekly</a></li>
<li style="float: right"><a href="about.html">About</a></li>
</div>
<div class="form-box">
<?php
$d=$_POST['date'];
?>
<center>
<table border=2>
<tr>
<th>SN</th>
<th>Time</th>
<th>Temperature</th>
<th>Humidity</th>
<th>Sound</th>
<th>Gas</th>
</tr>
<?php
$con=mysqli_connect("localhost","root","","main_base");
$l=mysqli_query($con,"select * from minutewise where Date='$d'");
while($a=mysqli_fetch_array($l))
{?>
<tr>
<td><?php echo $a['S.N.'];?></td>
<td><?php echo $a['Time'];?></td>
<td><?php echo $a['Temperature'];?></td>
<td><?php echo $a['Humidity'];?></td>
<td><?php echo $a['Sound'];?></td>
<td><?php echo $a['Gas'];?></td>
</tr>
<?php } ?>
</table>
</center>
</div>
</body>
</html>