") . json_last_error_msg() .EOLH; }else { $query = "SELECT DISTINCT device, property FROM logs"; $result = $mohaDB->query($query); $devices = mysqli_fetch_all($result, MYSQLI_ASSOC); $devicesList = array(); // print_r($devices); print '
" . EOL; } require_once "footer.php"; ?>