????JFIF??x?x????'
Server IP : 79.136.114.73 / Your IP : 13.59.50.189 Web Server : Apache/2.4.7 (Ubuntu) PHP/5.5.9-1ubuntu4.29 OpenSSL/1.0.1f System : Linux b8009 3.13.0-170-generic #220-Ubuntu SMP Thu May 9 12:40:49 UTC 2019 x86_64 User : www-data ( 33) PHP Version : 5.5.9-1ubuntu4.29 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority, MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /var/www/appsrv.astacus.se/XMP/viewerTest/ |
Upload File : |
<?php require_once('connection.php'); //$sql = "SELECT * FROM tblDroneAttributes WHERE DronePhotoAttributesId=1"; //$sql = "SELECT * FROM tblDroneProjects WHERE ProjectId=44444"; //$sql = "SELECT * FROM tblDroneAttributes"; $sql = "SELECT * FROM tblDroneAttributes WHERE DronePhotoAttributesId=1"; $result = mysqli_query($connection, $sql); if ($result->num_rows > 0) { //echo "if " . "<br>"; $rows = Array(); //echo "if 1" . "<br>"; while($row = mysqli_fetch_array($result)) { //echo "if 2 " .$row[1] . "<br>"; array_push($rows, $row); } //echo "if 3" . "<br>" . $rows[0][0] . "<br>"; //echo $rows; echo json_encode(array("result"=>$rows)); //echo (array("result"=>$rows)); //echo "if 4 rows length: " .$rows.count() . "<br>"; } else { echo "0 results"; } //mysqli_close($connection); /*$JSON_DATA_ALL = array(); //echo "1: " ."<br>"; while($row = mysqli_fetch_array($result)) { $JSON_DATA = array(); //echo "DronePhotoAttributesId: " .$row['DronePhotoAttributesId'] ."<br>"; //echo "Attribute: " .$row['Attribute'] ."<br>"; $JSON_DATA['DronePhotoAttributesId'] = $row['DronePhotoAttributesId']; $JSON_DATA['Attribute'] = $row['Attribute']; array_push($JSON_DATA_ALL, $JSON_DATA); //$JSON_DATA_ALL[] = $JSON_DATA; } //echo "2: " ."<br>"; echo(json_encode($JSON_DATA_ALL));*/ //echo "3: " ."<br>"; //$result -> fetch_all(MYSQLI_ASSOC); //echo json_encode(array("result"=>$result)); //echo "if " . "<br>"; /*$sql = "SELECT * FROM tblDroneAttributes"; $result = $mysqli->query($sql); while($obj = $result->fetch_object()) { echo(' <a id="id_ShowMarkerAttrubute'.$obj->DronePhotoAttributesId.'" href="#" onclick="ShowMarkerBasedOnAttribute('.$obj->DronePhotoAttributesId.');"> '.$obj->Attribute.' </a><br>'); }*/ ?>