the second loop work correctly for the first looping from the first loop, after that just execute the first loop without the second loop.can someone tell me where mistake from this code :
<form method="POST" action="#">
<?php
$no=0;
while($soal=mysql_fetch_array($result)){
$now=++$no;
echo $now.". ".$soal['soal']."<p>";
while($jawaban=mysql_fetch_array($result2)){ ;
?>
<p>
<input type=radio name="grup[<?php $now?>]" value="<?php $jawaban['idJawaban']?>"><?php echo $jawaban['jawaban']?><br>
<?php
}
}
?>
<input type="submit" value="submit">
</form>