Guest User

Untitled

a guest
Mar 22nd, 2018
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. <?php
  2. require 'config.php';
  3.  
  4. $sql = "SELECT * FROM statistik ORDER BY date_create DESC";
  5. $query = $db->query($sql);
  6.  
  7. ?>
  8. <h3>Daftar User yang pernah mengakses Halaman</h3>
  9. <table border="1">
  10. <tr>
  11. <td>IP</td>
  12. <td>Browser</td>
  13. <td>OS</td>
  14. <td>Date</td>
  15. </tr>
  16. <?php
  17. while ($row=$query->fetch_assoc()) { ?>
  18. <tr>
  19. <td><?php echo $row['ip'];?></td>
  20. <td><?php echo $row['browser'];?></td>
  21. <td><?php echo $row['os'];?></td>
  22. <td><?php echo $row['date_create'];?></td>
  23. </tr>
  24. <?php } ?>
  25. </table>
Add Comment
Please, Sign In to add comment