function kloter_bygel($p4){
  global $ar,$db;
  $dt=array();
  $sql2="SELECT emb,klt,`code`,gel from `berangkat` where gel=".$p4;
  $res2=mysqli_query($db,$sql2);
  $dt['count']=mysqli_num_rows($res2);
  $dt['success']=true;
  if(mysqli_num_rows($res2)>0) {
    $c=0;
    while($r1=mysqli_fetch_assoc($res2)) {
      $dt['data'][$c]=$r1;    
      $c++;
    }
  } else {
    $dt['count']=0;
    $dt['error']=true;
    $dt['message']="data not found";
  }
  return $dt;
}