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']);
//$rr[]=$rowa['nim'];
// echo"$rowa[nim] <br>";
}
// $key=json_decode($rr);
print_r($rr);
foreach ($rr as $dt2) {
echo $dt2['nim'] ; echo "<br>";
}
// exit();
0 Response to "bungkus looping while"
Post a Comment