ok

Mini Shell

Direktori : /home2/selectio/www/lilyexpresslive/software/admin/
Upload File :
Current File : /home2/selectio/www/lilyexpresslive/software/admin/get-available-awb-number-reversed.php

<?php 
ob_start();
session_start();
include("inc/config.php");
    $clinet_id = $_POST['id'];
    
    if($clinet_id=='' || $clinet_id=='none'){
        $clinet_id=0;
    }
   // $clinet_id=28;
    	$statement = $pdo->prepare("SELECT awb_code FROM `tbl_awb` WHERE client_id=".$clinet_id." and status=1 and is_return_awb=1 ORDER BY id ASC LIMIT 1");
		$statement->execute();
		$result = $statement->fetchAll(PDO::FETCH_ASSOC);
        foreach ($result as $row) {
            $awb_code = $row['awb_code'];
        } 
        if(count($result)==0){ $awb_code=0; }
        $datas[] = array('awb_code' => $awb_code);
     echo json_encode($datas);     
?>

Zerion Mini Shell 1.0