Folder reorganize 1
This commit is contained in:
22
data/OLD/eastTDavg.php
Normal file
22
data/OLD/eastTDavg.php
Normal file
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
include("../items.php");
|
||||
|
||||
|
||||
//East AVG time query
|
||||
|
||||
$con=mysqli_connect('192.168.0.9', 'corey', '41945549', 'controls');
|
||||
$query="SELECT DATE FROM plc GROUP BY totnorth DESC LIMIT 10";
|
||||
$result=mysqli_query($con, $query);
|
||||
|
||||
$easttime = [];
|
||||
|
||||
while ($row=mysqli_fetch_array($result, MYSQLI_ASSOC)) {
|
||||
array_push($easttime, date(strtotime($row['DATE'])));
|
||||
}
|
||||
$eastavg=date('i:s', ($easttime[0]-$easttime[9])/10);
|
||||
|
||||
mysqli_close($con);
|
||||
|
||||
echo $eastavg;
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user