File manager - Edit - /home/cipherteam/htdocs/cipherteam.in/API/IPO/V3/GetAllSMEPast.php
Back
<?php require_once("Connection.php"); if(isset($_GET["Skip"])) { $skip = $_GET["Skip"]; $sql = "SELECT `id` AS 'ID',`c_name` AS 'C_NAME',`ipokey` AS 'KEY',`islive` AS 'ISLIVE',`img` AS 'IMG',`i_date` AS 'I_DATE',`c_date` AS 'C_DATE',`o_price` AS 'O_PRICE',`m_application` AS 'MIN_APP',`rat` AS 'RAT',`details` AS 'DET',`url` AS 'URL',`status` AS 'STATUS',`date` AS 'DATE',`subscription` AS 'SUB',`allotment` AS 'ALLOTMENT',`GMP` AS 'GMP',`suggestion` AS 'SUG' FROM `ipo_post` WHERE `status` = 'PAST' AND `TYPE` = 'S' ORDER BY `NO`"; $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.09 |
proxy
|
phpinfo
|
Settings