-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathchat.php
26 lines (20 loc) · 1014 Bytes
/
chat.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<?php
require 'db.php';
$query = "SELECT * FROM chat_info ORDER BY id DESC";
$query_run = mysqli_query($con,$query);
// $query_run =$con -> query($query);
// $query_array = mysql_fetch_assoc($query_run)
while($query_row = mysqli_fetch_assoc($query_run)):?>
<div id ="chat_data">
</div>
<span style="color:red;"><?php echo $query_row['name'].' : '; ?></span>
<span style="font-family:cursive;"><?php echo $query_row['msg']; ?></span>
<span style = "font-family:cursive;float:right;"><?php echo formatDate($query_row['date']); ?></span>
<!--
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
-->
<?php endwhile; ?>