Advertisement
GWibisono

dsadasd

Mar 14th, 2014
174
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.40 KB | None | 0 0
  1. <table><?
  2. $sql="select nilai from table group by nilai order by nilai";
  3. $t=1;
  4. //===========query disini=====
  5. while($row=fetch($sql))
  6. {
  7.    $a[$t]=$row['nilai'];
  8.     $sql="select nama, id, nilai from table where nilai=$row[nilai]";
  9.     while($row2=fetch($sql)){
  10.        ?><tr><td><?=$row[nama];?></td> <td><?=$row[id];?></td> <td><?=$row[nilai];?></td>
  11. <td><?=$t;?></td></tr>
  12. <?php
  13.     }
  14.    $t++;
  15. }
  16.  
  17. ?></table>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement