%PDF- %PDF-
Direktori : /home/eirtvhdf/payments.hire-va.com/api/ |
Current File : /home/eirtvhdf/payments.hire-va.com/api/_link.php |
<?php require '../inc/c.php'; $conn = mysqli_connect($sever,$db_u,$db_p,$db); if($conn->connect_error){ die('connection failed : '.$conn->connect_error); } if(isset($_GET['payments_id'])) $payments_id=$_GET['payments_id']; else $payments_id="0"; $sql = "SELECT p.id,p.cname,p.cemail,p.cpcode,p.cphone,p.item,p.amount,p.ip,p.status,p.status_date,p.status_desc,p.transaction_id,p.date,p.created_by,p.is_active FROM payments p WHERE p.id=$payments_id and p.is_active=1"; $result = mysqli_query($conn,$sql); $links = array(); if(!$result){ die('error found'.mysqli_error($conn)); } while ($row = mysqli_fetch_assoc($result)) { $links[] = $row; } $conn->close(); header('Content-type:application/json;charset=utf-8'); echo json_encode($links); ?>