www/getnode.php

Wed, 18 Mar 2020 19:46:15 +0100

author
Michiel Broek <mbroek@mbse.eu>
date
Wed, 18 Mar 2020 19:46:15 +0100
changeset 642
9d1af81b20ef
parent 572
7a03181d29a3
permissions
-rw-r--r--

Limit debug ProtoDeficit error messages. If the need for a yeast starter changes, make sure the screen is updated. Another set of extra debug logs. Fixed try yeast starter. Several dropdown lists changed the action from change to select. This should fix te too early calculations while the data was not yet loaded.

<?php

require_once('config.php');

if (isset($_GET["uuid"]))
    $uuid = $_GET["uuid"];
else
    $uuid = "'c0c17800-fabb-4f22-a02a-4f83a7b1b21b'";


$query = "SELECT * FROM mon_nodes WHERE uuid=".$uuid."";
$mysqli = new mysqli(DBASE_HOST,DBASE_USER,DBASE_PASS,DBASE_NAME);
$result = $mysqli->query($query);
//Copy result into a associative array
$resultArray = $result->fetch_array(MYSQLI_ASSOC);
header("Content-type: application/json");
echo json_encode($resultArray);

mercurial