Advertisement
BimoSora

waktu

Oct 18th, 2019
152
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. <?php
  2. require_once("connection.php");
  3. $chat_table = $db->prepare("SELECT * FROM chat_table ORDER BY chat_id DESC");
  4. $chat_table->execute();
  5. while($data = $chat_table->fetch()){
  6. ?>
  7. <?php
  8. $mulai = $data["register_chat"];
  9. $exp = $data["end_chat"];
  10. if (!(strtotime($mulai) <= time() AND time() >= strtotime($exp))) {
  11. echo '<div class="large-12 medium-12 small-12 text-username cell">';
  12. echo $data["username"];
  13. echo '</div>';
  14. echo '<div class="large-12 medium-12 small-12 text-chat cell">';
  15. echo $data["chatroom"];
  16. echo '</div>';
  17. } else {
  18. echo '<div> deleted';
  19. echo '</div>';
  20. }
  21. ?>
  22. <?php } ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement