Folder reorganize 1
This commit is contained in:
17
includes/heatersp2.php
Normal file
17
includes/heatersp2.php
Normal file
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
include("../dbinfo3.php");
|
||||
|
||||
$con=mysqli_connect($host,$username,$password,$database);
|
||||
$query = "SELECT Value FROM items where ID = '0000636'";
|
||||
$result=mysqli_query($con,$query);
|
||||
|
||||
$include1=mysqli_fetch_array($result,MYSQLI_ASSOC);
|
||||
|
||||
mysqli_close($con);
|
||||
?>
|
||||
|
||||
|
||||
<?php
|
||||
$rawValue = isset($include1['Value']) ? (float) $include1['Value'] : 0.0;
|
||||
echo round($rawValue, 2);
|
||||
?>
|
||||
Reference in New Issue
Block a user