File manager - Edit - /home/autoph/public_html/api/aha/load_brands.php
Back
<?php include '../../../cfg/ahaconn.php'; $mykey =$_GET['keyID']; //echo "Arnel " . $mykey; if($mykey =="list6e59e008b5348b452b615a3033729daae383-brand"){ // SQL query $brandID = $_GET['brandID']; $sql = "SELECT * FROM `brands` WHERE `enabled` = 1 ORDER BY `name` ASC"; $result = $conn->query($sql); if ($result->num_rows > 0) { // Array to hold the results $rows = array(); // Fetch data from each row and add it to the array while($row = $result->fetch_assoc()) { $rows[] = $row; } // Output the result in JSON format header('Content-Type: application/json'); echo json_encode($rows); } } // Close connection $conn->close(); ?>
| ver. 1.4 |
.
| PHP 7.3.33 | Generation time: 0 |
proxy
|
phpinfo
|
Settings