File manager - Edit - /home/cipherteam/htdocs/cipherteam.in/API/YOGA_APP/GET_SUB_CAT.php
Back
<?php if(isset($_GET["ID"])) { require_once("Connection.php"); $sql ="SELECT `sub_cat`.`sub_cat_id` AS 'ID',`sub_cat`.`sub_cat_name` AS 'NAME',`sub_cat`.`sub_cat_img` AS 'IMG',`cat`.`cat_name` AS 'CAT_NAME' FROM `sub_cat`,`cat` WHERE `cat`.`cat_id` = `sub_cat`.`cat_id` AND `sub_cat`.`cat_id` = ".$_GET["ID"]; $rows = $con->query($sql); $con->error; $catName = ""; if($rows->num_rows > 0) { $Cats["CAT"] = array(); while($row = $rows->fetch_assoc()) { $SingleCat = array(); $SingleCat = $row; array_push($Cats["CAT"],$SingleCat); $catName = $row["CAT_NAME"]; } $Cats["catName"] = $catName; } else { $Cats["success"] = 0; } echo json_encode($Cats); } ?>
| ver. 1.4 |
Github
|
.
| PHP 8.2.9 | Generation time: 0.01 |
proxy
|
phpinfo
|
Settings