<?
require_once ("secure/mysql.php");
$sql = mysql_query ("SELECT * FROM `mb_msg` WHERE thread=\"$thread\" ORDER BY date ASC");
while (@extract (mysql_fetch_array ($sql), EXTR_PREFIX_ALL, "msg"))
{
echo "<table>\n";
echo " <tr>\n";
echo " <td align=center>\n";
echo "$msg_title\n";
echo " <tr>\n";
echo " <td align=center>\n";
echo "written by `$msg_author` on $msg_date\n";
echo " <tr>\n";
echo " <td align=justify>\n";
echo "$msg_msg\n";
echo "</table><br>\n";
}
mysql_close();
echo "<a href=add_msg.php?thread=$thread>Add post</a><br><br>";
?>