File manager - Edit - /home/cipherteam/htdocs/cipherteam.in/admin/API/GetAllOffer.php
Back
<?php require_once("Connection.php"); $sql = "SELECT `offer_table`.`offer_id` AS 'OFF_ID',`offer_table`.`offer_name` AS 'NAME',`offer_table`.`offer_discount` AS 'DIS' FROM `offer_table` WHERE `offer_table`.`offer_id` != 1"; $rows = $con->query($sql); if($rows->num_rows > 0) { $Offers["Offers"] = array(); while($row = $rows->fetch_assoc()) { $Offer = array(); $Offer = $row; array_push($Offers["Offers"],$Offer); } $Offers["success"] = 1; } else { $Offers["success"] = 0; } echo json_encode($Offers); ?>
| ver. 1.4 |
Github
|
.
| PHP 8.2.9 | Generation time: 0.01 |
proxy
|
phpinfo
|
Settings