<?
session_start();
include('header.php');
include('connect.php');
if ($_POST[cr_post]){
$youass = mysql_query("SELECT * FROM * `Threads` WHERE `Forum` = `$id` ");
while ($id = mysql_fetch_row($youass)){
mysql_query("INSERT INTO `Posts` ( `Name` , `id` , `Content` , `Thread` , `poster` , `date` , `time` ) VALUES ('$_POST[ps_sub]', '', '$_POST[ps_mes]', '$ps_forum', '$_POST[ps_user]', CURDATE(), CURTIME() )");
mysql_query("UPDATE `Forums` SET `Last Post` = CURTIME() WHERE `id` = `$id` ");
?>
<META HTTP-EQUIV='refresh' content='1;URL=threadview.php?thread=<?=$ps_forum?>'>
<?
}
}
include('doc.html');
?>
The link to it is: http://programmersunited.com/new_forum:) Please help. If you need more details, post












