File manager - Edit - /home/autoph/public_html/api/aha/SA_loadServiceActivity.php
Back
<?php include '../../../cfg/ahaconn.php'; $mykey = $_GET['keyID']; //echo "Arnel " . $mykey; if($mykey =="6e59e008b5348b452bact615a3033729daae383"){ $userID = $_GET['userID']; $serviceID= $_GET['serviceID']; // SQL query $sql = "SELECT * FROM service_booking_logs WHERE service_booking_id='$serviceID'"; $result = $conn->query($sql); $count=0; if ($result->num_rows > 0) { // Array to hold the results $rows = array(); while($row = $result->fetch_assoc()) { $servID = $row['service_status_id']; $rows[] = $row; $count = $count + 1; } if($count > 0){ $cardNotes = ""; }else{ $cardNotes = "No record found."; } // Output the result in JSON format header('Content-Type: application/json'); } else { $cardNotes = "No record found."; } echo json_encode([$rows,"status" => "$cardNotes"]); } // Close connection $conn->close(); ?>
| ver. 1.4 |
.
| PHP 7.3.33 | Generation time: 0 |
proxy
|
phpinfo
|
Settings