File manager - Edit - /home/cipherteam/htdocs/cipherteam.in/admin/API/GetAllPincode.php
Back
<?php require_once("Connection.php"); $sql = "SELECT `area_table`.`pincode` AS 'PINCODE',`area_table`.`area_name` AS 'AREA' FROM `area_table`"; $rows = $con->query($sql); if($rows->num_rows > 0) { $Areas["Areas"] = array(); while($row = $rows->fetch_assoc()) { $Area = array(); $Area = $row; array_push($Areas["Areas"],$Area); } $Areas["success"] = 1; } else { $Areas["success"] = 0; } echo json_encode($Areas); ?>
| ver. 1.4 |
Github
|
.
| PHP 8.2.9 | Generation time: 0.01 |
proxy
|
phpinfo
|
Settings