fhdfhdfhdfhdfhdfhdfdfhdfhdfhdhfdfhdfhdfhd dfhdfhdfhdfhdfhdfhdfhdfdfhdfhdfhdhfdfhdfhdfhdfh
| DIR:/home/u1105814/www/uploads/ |
| Current File : //home/u1105814/www/uploads/list_pengajuan.php |
<?php
header('Access-Control-Allow-Origin: *');
require_once('../koneksi.php');
$myArray = array();
$user_id=$_POST["user_id"];
if ($result = mysqli_query($conn, "SELECT a.*,b.status FROM pengajuan_det a left join pengajuan b on a.no_pengajuan=b.no_pengajuan where b.cadang2=$user_id")) {
while ($row = $result->fetch_array(MYSQLI_ASSOC)) {
$myArray[] = $row;
}
//$myArray[]=array('RESPONSE' => 'SUCCESS');
//$result2=array_merge($myArray,$array2);
echo json_encode($myArray);
}
?> |