Files
controls-web/includes/stablerate60.php
2026-02-17 12:44:37 -06:00

19 lines
613 B
PHP

<?php
include("../dbinfo.php");
$con=mysqli_connect($host,$username,$password,$database);
$query = "SELECT(((SELECT easttotground FROM easttotalground ORDER BY id DESC LIMIT 1) - (SELECT easttotground FROM easttotalground ORDER BY id DESC LIMIT 59, 1))*60
+
((SELECT westtotground FROM westtotalground ORDER BY id DESC LIMIT 1) - (SELECT westtotground FROM westtotalground ORDER BY id DESC LIMIT 59, 1))*60)
AS stablerate";
$result=mysqli_query($con,$query);
$include4=mysqli_fetch_array($result,MYSQLI_ASSOC);
mysqli_close($con);
?>
<?php echo round($include4['stablerate']); ?>