Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <table><?
- $sql="select nilai from table group by nilai order by nilai";
- $t=1;
- //===========query disini=====
- while($row=fetch($sql))
- {
- $a[$t]=$row['nilai'];
- $sql="select nama, id, nilai from table where nilai=$row[nilai]";
- while($row2=fetch($sql)){
- ?><tr><td><?=$row[nama];?></td> <td><?=$row[id];?></td> <td><?=$row[nilai];?></td>
- <td><?=$t;?></td></tr>
- <?php
- }
- $t++;
- }
- ?></table>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement