Sebuahhobi98

tampil.php

May 10th, 2018
272
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.58 KB | None | 0 0
  1. <?php
  2.     include'koneksi.php';
  3. ?>
  4. <html>
  5. <head></head>
  6. <body>
  7.     <table border="1">
  8.         <thead align="center">
  9.             <tr>
  10.                 <th>Hasil</th
  11.             </tr>
  12.         </thead>
  13.         <?php
  14.             stat($i);
  15.             $N1=floor($i*10)/10;
  16.             $N2=floor($i*100)%10;
  17.             mysqli_select_db($koneksi,"tabelz");
  18.             $query="SELECT z".$N1." as num from tabelZ where noZ='$N1'";
  19.             $sql=mysqli_query($query);
  20.             $total=mysqli_num_rows($sql);
  21.             while($data=mysqli_fetch_array($sql))
  22.             {
  23.         ?>
  24.         <tbody>
  25.             <tr>
  26.                 <td><?php echo $data['num'];?></td
  27.             </tr>
  28.         <?php }?>
  29.         </tbody>
  30.     </table>
  31. </body>
  32.        
  33. </body>
  34. </html>
Add Comment
Please, Sign In to add comment