| Server IP : 93.86.61.54 / Your IP : 216.73.216.60 Web Server : Apache/2.4.62 (Ubuntu) System : Linux rasin.ddns.net 6.8.0-124-generic #124~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Tue May 26 21:05:19 UTC x86_64 User : www-data ( 33) PHP Version : 8.4.22 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /var/www/html/projects/infoca/ |
Upload File : |
<!DOCTYPE html>
<!--
******************************
Project: InfoCA, 2021
Version: PHP 5-7
Author : M. Kukic
Note :
******************************
-->
<html>
<head>
<style>
table, th, td {
border: 1px solid gray;
border-collapse: collapse;
}
th, td {
padding: 4px;
text-align: center;
}
</style>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link rel='shortcut icon' type='image/png' href='favicon.png'/>
<meta http-equiv="refresh" content="20">
<title>InfoCA</title>
</head>
<body>
<div style="width:720px; word-wrap:break-word;">
<?php
//
include "config.php";
//
include "hed.php";
//
$sql = "SELECT * FROM datalog WHERE amsid='CA0' ORDER BY dattim DESC";
$result = mysqli_query($dbh, $sql) or die (mysqli_error($dbh));
$nuz = mysqli_num_rows($result);
echo "<b>Meteo i AQI statistika:</b> CA0 / Uzoraka ".$nuz;
echo "<br>";
echo "<table style='background-color:#F0F8FF; width:720px; margin:0 auto;'>";
echo "<tr>";
echo "<th>Br.</th>";
echo "<th>Vreme</th>";
echo "<th>Temp</th>";
echo "<th>Humi</th>";
echo "<th>Baro</th>";
echo "<th>Sun</th>";
echo "<th>Wind</th>";
echo "<th>CO</th>";
//echo "<th>CO2</th>";
echo "<th>PM2.5</th>";
echo "<th>PM10</th>";
echo "</tr>";
for ($i = 1; $i<($nuz+1); $i++) {
$row = mysqli_fetch_array($result);
//
echo "<tr>";
echo "<td>".$i."</td>";
$dt=$row['dattim'];
$go=substr($dt,0,4);
$me=substr($dt,5,2);
$da=substr($dt,8,2);
$vr=substr($dt,11,5);
echo "<td>".$da."/".$me."/".$go." - ".$vr."</td>";
echo "<td>".$row['temp']."</td>";
echo "<td>".$row['humi']."</td>";
echo "<td>".$row['baro']."</td>";
echo "<td>".$row['sun']."</td>";
echo "<td>".$row['wind']."</td>";
echo "<td>".$row['co']."</td>";
//echo "<td>".$row['co2']."</td>";
echo "<td>".$row['pm25']."</td>";
echo "<td>".$row['pm10']."</td>";
echo "</tr>";
}
echo "</table>";
echo "<br>";
//
mysqli_close($dbh);
?>
<hr>
<img src="img/b_white-2.png">
<a href="javascript:history.go(-1)"><img src="img/r_ret.png" width="" height="48"></a>
</div>
<?php include "fut.php";?>
</body>
</html>