FROM daftar a INNER JOIN siswa b ON a.no_daftar=b.no_pendaftaran WHERE a.kelas='Pagi' order by b.nim Asc";
$query= mysql_query($query1);
while($rowa = mysql_fetch_array($query))
{
$rr[]=array('nim'=>$rowa['nim']);
}
$key=json_encode($rr);
$a= json_decode($key);
foreach ($a as $gg){
echo $gg->nim;
}
exit();
0 Response to "bungkus looping while json"
Post a Comment