569:d0e7ab1fc245 | 570:c8a20234d7e7 |
---|---|
1 <?php | |
2 | |
3 require_once('config.php'); | |
4 | |
5 if (isset($_GET["uuid"])) | |
6 $uuid = $_GET["uuid"]; | |
7 else | |
8 $uuid = "'ispindel000'"; | |
9 | |
10 | |
11 $mysqli = new mysqli(DBASE_HOST,DBASE_USER,DBASE_PASS,DBASE_NAME); | |
12 $query = "SELECT * FROM mon_ispindels WHERE node=".$uuid.""; | |
13 $result = $mysqli->query($query); | |
14 $resultArray = $result->fetch_array(MYSQLI_ASSOC); | |
15 header("Content-type: application/json"); | |
16 echo json_encode($resultArray); |