www/getfermenters.php

Thu, 09 Aug 2018 21:52:01 +0200

author
Michiel Broek <mbroek@mbse.eu>
date
Thu, 09 Aug 2018 21:52:01 +0200
changeset 4
1750b6cae48e
parent 2
282e7d2bb28a
child 7
59048cd5f00d
permissions
-rw-r--r--

Web pages nodes display works.

<?php

require_once('config.php');

$mysqli = new mysqli(DBASE_HOST,DBASE_USER,DBASE_PASS,DBASE_NAME);
$result = $mysqli->query("SELECT uuid,node,alias,online,mode FROM fermenters");
//Copy result into a associative array
$resultArray = $result->fetch_all(MYSQLI_ASSOC);
echo json_encode($resultArray);

mercurial