hmm, well, ive never tried this before and im not very good at it, i made a news posting script that worked except it didn't allow html so i made a code in a different file like bbcode or something that will replace it with the html, here is my viewnews.php code that has a parse error on line 17:
<?php
$FileName="news.php";
$list=file($FileName);
$list = array_reverse($list);
$FileName2="lists/shoutcode.php";
$list2 = file ($FileName2);
foreach ($list2 as $codes) {
list ($code,$html,) = explode ("|^|", $codes);
$list = str_replace ($code, $html, $list);
foreach($list as $line) {
list($subject,$name,$message,$date,$time,) = explode("|^|",$line);
echo "<center><table border=\"0\" cellpadding=\"0\" cellspacing=\"0\"><tr><td colspan=\"3\" width=\"350\" bgcolor=\"#ffffcc\"><font color=\"#000000\"><b><u>$subject</u></b></font></td></tr><tr><td colspan=\"3\" width=\"350\" bgcolor=\"#9999ff\"><font color=\"#000000\">$message</font></td></tr><tr><td bgcolor=\"#ffffcc\"><font color=\"#000000\"><b>On</b> $date <b>At</b> $time</font></td><td bgcolor=\"#ffffcc\" align=\"right\"><font color=\"#000000\"><b>By:</b> $name</font></td></tr></table><BR></center><br>";
}
?>