File manager - Edit - /home/cipherteam/htdocs/cipherteam.in/API/STOCK_NEWS/V2NEW/getUpcomingResult.php
Back
<?php require_once('Connection.php'); $sql = "SELECT `stock` AS 'STOCK',`date` AS 'DATE',`ltp` AS 'LTP',`changeper` AS 'CHANGEPER',`week_high` AS 'HIGH',`week_low` AS 'LOW' FROM `upcoming_results` ORDER BY `date`"; $result = $con->query($sql); $News["RESULTS"] = array(); while($row = $result -> fetch_assoc()) { $New = array(); $New = $row; array_push($News["RESULTS"],$New); } $con-> close(); $News["success"] = 1; echo json_encode($News); ?>
| ver. 1.4 |
Github
|
.
| PHP 8.2.9 | Generation time: 0.02 |
proxy
|
phpinfo
|
Settings