Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- require_once("connection.php");
- $chat_table = $db->prepare("SELECT * FROM chat_table ORDER BY chat_id DESC");
- $chat_table->execute();
- while($data = $chat_table->fetch()){
- ?>
- <?php
- $mulai = $data["register_chat"];
- $exp = $data["end_chat"];
- if (!(strtotime($mulai) <= time() AND time() >= strtotime($exp))) {
- echo '<div class="large-12 medium-12 small-12 text-username cell">';
- echo $data["username"];
- echo '</div>';
- echo '<div class="large-12 medium-12 small-12 text-chat cell">';
- echo $data["chatroom"];
- echo '</div>';
- } else {
- echo '<div> deleted';
- echo '</div>';
- }
- ?>
- <?php } ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement