File manager - Edit - /home/cipherteam/htdocs/cipherteam.in/admin/API/GetModels.php
Back
<?php require_once("Connection.php"); if(isset($_GET['id'])) { $sql = "SELECT `model_master_table`.`model_id` AS 'ID',`model_master_table`.`model_name` AS 'MODEL' FROM `model_master_table` WHERE `model_master_table`.`mfg_id` = ".$_GET['id']; $rows = $con->query($sql); if($rows->num_rows > 0) { $Mfgs["Mfgs"] = array(); while($row = $rows->fetch_assoc()) { $Mfg = array(); $Mfg = $row; array_push($Mfgs["Mfgs"],$Mfg); } $Mfgs["success"] = 1; } else { $Mfgs["success"] = 0; } echo json_encode($Mfgs); } ?>
| ver. 1.4 |
Github
|
.
| PHP 8.2.9 | Generation time: 0.02 |
proxy
|
phpinfo
|
Settings