Hello,
Check out the following code, this may help you
Code:
<? Php
/ / ...
$ rshts = mysql_query('SELECT * FROM shoutbox ORDER BY id DESC LIMIT 0, 8')
/ / Can we make a loop to display all results
while ( $ shts = mysql_fetch_array($ rshts) )
(
$ msg = bbcode(htmlspecialchars($ shts['message']));
$ pse = htmlspecialchars($ shts['username']);
$ hre = date('H \ hi', $ shts[' timestamp ']);
$ dt = date_naturelle($ shts['timestamp'])
echo '
<tr>
<td> '.$ pse.'</ td>
<td> <a title = "Message posted on '.$ dt.'">'.$ hre.'</ a> </ td>
<td style="width: 70%;"> ".$ msg.'</ td>
</ tr>
';
)
Bookmarks