function p8docpl(){
global $ar,$db;
$dt=array();
//$dt['param']=$js;
//$sql="SELECT id, from `ptg8_stp3` where `doc_lengkap`=0 order by rand()";
$sql="SELECT * from `ptg8_stp3` where `doc_lengkap`<14 and status='stp-3.4' and is_pl=1 order by rand()";
//$dt['sql'][1]=$sql8;
$res=mysqli_query($db,$sql);
if(mysqli_num_rows($res)>0){
$dt['success']=true;
$dt['count']=mysqli_num_rows($res);
while($r=mysqli_fetch_assoc($res)) {
$dt['data'][]=$r;
}
} else {
$dt['error']=true;
$dt['count']=0;
$dt['message']="Data not found";
}
return $dt;
}