File manager - Edit - /home/cipherteam/htdocs/cipherteam.in/API/STOCK_NEWS/V2NEW/GetCurrentIPO.php
Back
<?php require_once("ipo_connection.php"); $sql = "SELECT `ipo_table`.`id` AS 'ID',`ipo_table`.`c_name` AS 'C_NAME',`ipo_table`.`img` AS 'IMG',`ipo_table`.`i_date` AS 'I_DATE',`ipo_table`.`c_date` AS 'C_DATE',`ipo_table`.`gmp` AS 'GMP',`ipo_table`.`o_price` AS 'O_PRICE',`ipo_table`.`m_application` AS 'MIN_APP',`ipo_table`.`rat` AS 'RAT',`ipo_table`.`suggestion` AS 'SUG',`ipo_table`.`details` AS 'DET',`ipo_table`.`url` AS 'URL',`ipo_table`.`suggestion` AS 'SUB',`ipo_table`.`allotment` AS 'ALLOTMENT',`ipo_table`.`date` AS 'DATE' FROM `ipo_table` ORDER BY `ipo_table`.`no`"; $result = $con->query($sql); $Posts["Posts"] = array(); if ($result->num_rows > 0) { while($row = $result->fetch_assoc()) { $post = array(); $post = $row; array_push($Posts["Posts"],$post); } $Posts["success"] = "1"; } else { $Posts["success"] = "0"; } echo json_encode($Posts); ?>
| ver. 1.4 |
Github
|
.
| PHP 8.2.9 | Generation time: 0.06 |
proxy
|
phpinfo
|
Settings