File manager - Edit - /home/cipherteam/htdocs/cipherteam.in/API/STOCK_NEWS/GetIPOPostAll.php
Back
<?php require_once("Connection.php"); if(isset($_GET['STATUS']) && isset($_GET["Skip"])) { $skip = $_GET["Skip"]; $status = $_GET['STATUS']; $sql = "SELECT `ipo_post`.`id` AS 'ID',`ipo_post`.`c_name` AS 'C_NAME',`ipo_post`.`img` AS 'IMG',`ipo_post`.`i_date` AS 'I_DATE',`ipo_post`.`c_date` AS 'C_DATE',`ipo_post`.`o_price` AS 'O_PRICE',`ipo_post`.`m_application` AS 'MIN_APP',`ipo_post`.`rat` AS 'RAT',`ipo_post`.`details` AS 'DET',`ipo_post`.`url` AS 'URL',`ipo_post`.`status` AS 'STATUS',`ipo_post`.`date` AS 'DATE' FROM `ipo_post` WHERE `ipo_post`.`status` = '$status' ORDER BY `ipo_post`.`id` DESC"; $rows = $con->query($sql); if($rows->num_rows > 0) { while($skip > 0){ $rows->fetch_assoc(); $skip -= 1; } $count = 0; $Posts["Posts"] = array(); while($row = $rows->fetch_assoc()) { if($count == 10) break; $post = array(); $post = $row; array_push($Posts["Posts"],$post); $count += 1; } $Posts["success"] = 1; } else { $Posts["success"] = 0; } echo json_encode($Posts); } ?>
| ver. 1.4 |
Github
|
.
| PHP 8.2.9 | Generation time: 0.02 |
proxy
|
phpinfo
|
Settings