gundambison

begini kah?

Dec 13th, 2015
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.51 KB | None | 0 0
  1. <?php
  2. include('./koneksi.php');
  3. $q =mysql_query("SELECT kuota_siswa FROM setting LIMIT 0 , 30")
  4. or die (mysql_error());
  5. while($data = mysql_fetch_array($q )){
  6. //echo $data['kuota_siswa'];
  7.  
  8. //include('./koneksi.php');
  9.     $sql="select a.*,c.*,b.* from tb_ujian b,tb_siswa a ,setting c where a.no_daftar = b.no_ujian and a.tahun_ajaran=c.tahun_ajaran and a.status <> 'Proses' order by b.rata_rata
  10. DESC LIMIT ".$data['kuota_siswa'];
  11.     $q2=mysql_query($sql);
  12. while($data2 = mysql_fetch_array($q2)){
  13.     print_r($data2);
  14. }
Advertisement
Add Comment
Please, Sign In to add comment