File manager - Edit - /home/cipherteam/htdocs/cipherteam.in/API/Finance/SectorStocks/IndustryList.php
Back
<?php include_once("../ConnectToMarketData.php"); if(isset($_GET['sect_id'])) { $id = $_GET['sect_id']; $sql = "SELECT `ind_id` AS 'ID',`ind_name` AS 'NAME',`svglink` AS 'SVGLINK' FROM `industry_table` WHERE `sect_id` = " . $id ; $rows = $con->query($sql); $sectors["INDUSTRY"] = array(); if($rows->num_rows > 0) { while($row = $rows->fetch_assoc()) { $serctor = array(); $serctor = $row; array_push($sectors["INDUSTRY"],$serctor); } $sectors["success"] = 1; echo json_encode($sectors); } } ?>
| ver. 1.4 |
Github
|
.
| PHP 8.2.9 | Generation time: 0.02 |
proxy
|
phpinfo
|
Settings