add all files

This commit is contained in:
Rucus
2026-02-17 09:29:34 -06:00
parent b8c8d67c67
commit 782d203799
21925 changed files with 2433086 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
<?php
include("../items.php");
//West 2 AVG time query
$con=mysqli_connect('192.168.0.9', 'corey', '41945549', 'controls');
$query="SELECT DATE FROM plc GROUP BY totwest2 DESC LIMIT 10";
$result=mysqli_query($con, $query);
$west2time = [];
while ($row=mysqli_fetch_array($result, MYSQLI_ASSOC)) {
array_push($west2time, date(strtotime($row['DATE'])));
}
$west2avg=date('i:s', ($west2time[0]-$west2time[9])/10);
mysqli_close($con);
echo $west2avg;
?>