Folder reorganize 1
This commit is contained in:
12
itemsinclude.php
Normal file
12
itemsinclude.php
Normal file
@@ -0,0 +1,12 @@
|
||||
<?php
|
||||
$con=mysqli_connect('192.168.0.10', 'corey', '41945549', 'controls');
|
||||
$query="SELECT ID, Name, ROUND(Value, 2) AS Value, Timestamp FROM items ORDER BY ID ASC";
|
||||
$result=mysqli_query($con, $query);
|
||||
|
||||
while ($row=mysqli_fetch_array($result, MYSQLI_ASSOC)) {
|
||||
$value[$row['Name']] = $row['Value'];
|
||||
$time[$row['Name']] = $row['Timestamp'];
|
||||
}
|
||||
echo $value['FD Temp'];
|
||||
echo $time['FD Temp'];
|
||||
?>
|
||||
Reference in New Issue
Block a user