Folder reorganize 1
This commit is contained in:
39
includes/millprojected60min.php
Normal file
39
includes/millprojected60min.php
Normal file
@@ -0,0 +1,39 @@
|
||||
<?php
|
||||
include("../dbinfo.php");
|
||||
|
||||
$con=mysqli_connect($host,$username,$password,$database);
|
||||
$query = "SELECT ROUND(
|
||||
(((SELECT easttotground FROM easttotalground ORDER BY id DESC LIMIT 1) - (
|
||||
SELECT easttotground FROM easttotalground ORDER BY id DESC LIMIT 3599, 1))*(24
|
||||
-
|
||||
((SELECT TIME_TO_SEC(
|
||||
TIMEDIFF(
|
||||
CASE
|
||||
WHEN CURRENT_TIME() < '5:00:00'
|
||||
THEN ADDTIME(CURRENT_TIME(), '240000')
|
||||
ELSE CURRENT_TIME() END,
|
||||
'05:00:00'))/3600))))
|
||||
+
|
||||
(((SELECT westtotground FROM westtotalground ORDER BY id DESC LIMIT 1) - (
|
||||
SELECT westtotground FROM westtotalground ORDER BY id DESC LIMIT 3599, 1))*(24
|
||||
-
|
||||
((SELECT TIME_TO_SEC(
|
||||
TIMEDIFF(
|
||||
CASE
|
||||
WHEN CURRENT_TIME() < '5:00:00'
|
||||
THEN ADDTIME(CURRENT_TIME(), '240000')
|
||||
ELSE CURRENT_TIME() END,
|
||||
'05:00:00'))/3600)))))*1
|
||||
+
|
||||
(SELECT MillTotalGround FROM mill_total_ground ORDER BY id DESC LIMIT 1)
|
||||
AS millprojected";
|
||||
$result=mysqli_query($con,$query);
|
||||
|
||||
$include4=mysqli_fetch_array($result,MYSQLI_ASSOC);
|
||||
|
||||
mysqli_close($con);
|
||||
?>
|
||||
|
||||
|
||||
<?php echo round($include4['millprojected']); ?>
|
||||
|
||||
Reference in New Issue
Block a user