Pink,
After looking at the code some more, it looks like maybe you were duplicating some tables in your editor, and it was only grabbing part of the code, so I stripped the partials out, and left only one db call(for articles. I fixed all of the closing php tags(since your editor turned them into html code) and this is what you get.
If the first block of code doesn't work, then try the second:
<html>
<HEAD>
<META content="MSHTML 6.00.2900.2963" name=GENERATOR></HEAD>
<BODY>get_var("select value from config where name='index'"); ?>
<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
<TBODY>
<TR>
<TD style="BACKGROUND: url(../images/tpl/bgm.jpg) #000000 repeat-x" vAlign=top width=190 rowSpan=2>
<FORM name=frmLogin onsubmit="return validation();" action=/forum/login.php method=post><BR>
<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0 dwcopytype="CopyTableRow">
<TBODY>
<TR>
<TD class=tdhead style="BORDER-RIGHT: medium none; BORDER-TOP: medium none; PADDING-LEFT: 10px; BORDER-LEFT: medium none; BORDER-BOTTOM: #333 4px solid; BACKGROUND-COLOR: #000000" width="72%" height=25>Member Login</TD></TR></TBODY></TABLE>
<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
<TBODY>
<TR>
<TD width="100%" height=10></TD></TR>
<TR>
<TD class=text2a vAlign=top align=left>
<P style="PADDING-LEFT: 10px">Username : <INPUT class=post size=10 name=username> Password : <INPUT class=post type=password maxLength=32 size=10 name=password> <INPUT class=mainoption type=submit value="Log in" name=login> <BR>Remember me: <INPUT class=radio type=checkbox name=autologin> </P></TD></TR>
<TR>
<TD style="PADDING-LEFT: 10px; BACKGROUND-COLOR: #000000" height=20><A class=text2a href="http://pinkhouseproject.com//myportal/register.php">Register for an account!</A> </TD></TR>
<TR>
<TD height=10></TD></TR></TBODY></TABLE></FORM><IFRAME marginWidth=0 marginHeight=0 src="http://pinkhouseproject.com//forum/users_online.php" frameBorder=0 width=190 height=163></IFRAME></TD>
<TD style="PADDING-LEFT: 5px; PADDING-TOP: 5px" vAlign=top bgColor=#ffffff height=254>
<TABLE cellSpacing=0 cellPadding=0 border=0>
<TBODY>
<TR>
<TD align=middle width=35><IMG height=20 src="http://pinkhouseproject.com/../images/main/star2.gif" width=20></TD>
<TD>
<H3>Featured</H3></TD>
</TR>
</TBODY>
</TABLE>
<?=$value?>
</TD>
</TR>
<TR>
<TD style="BORDER-TOP: #000 1px solid; PADDING-LEFT: 5px; PADDING-TOP: 5px" vAlign=top bgColor=#ffffff height=254>
<TABLE cellSpacing=0 cellPadding=0 border=0>
<TBODY>
<TR>
<TD><IMG height=35 src="http://pinkhouseproject.com/../images/main/news.jpg" width=35></TD>
<TD>
<H3>News</H3></TD>
</TR>
</TBODY>
</TABLE>
<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
<TBODY>
<TR>
<TD style="PADDING-TOP: 5px" vAlign=top width=25><IMG height=9 src="http://pinkhouseproject.com/../images/main/arrow.gif" width=15></TD>
<TD><BR>
<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
<TBODY>
<TR>
<TD style="PADDING-TOP: 5px" vAlign=top width=25><IMG height=9 src="http://pinkhouseproject.com/../images/main/arrow.gif" width=15></TD>
<TD>
<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
<TBODY>
<TR>
<TD style="PADDING-TOP: 5px" vAlign=top width=25></TD>
<TD><BR>
<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
<? $ARTICLES=$db->get_results("SELECT *,DATE_FORMAT(date, '%y-%m-%d') as dated FROM articles a order by date desc limit 0"); foreach ($ARTICLES as $x=>$art) { ?>
<TBODY>
<TR>
<TD style="PADDING-TOP: 5px" vAlign=top width=25><IMG height=9 src="http://pinkhouseproject.com/../images/main/arrow.gif" width=15></TD>
<TD><A class=text2blue href="http://pub50.bravenet.com/hosting/article.php?id=<?= $art->id ?>"><?= $art->subject ?> </A></B><BR><FONT size=1><?= $art->dated?> <BR><STRONG>Author</STRONG>: <?= $art->author ?> </FONT>
<P></P>
<P><?= $art->summary?> ... <A class=text2b href="http://pub50.bravenet.com/hosting/article.php?id=<?= $art->id?>">Details</A></P></TD>
</TR>
</TBODY>
</TABLE>
</TD>
</TR>
</TBODY>
</TABLE>
<P> </P></TD>
</TR>
</TBODY>
</TABLE>
</TD>
</TR>
<TR>
<TD colSpan=2 height=10> </TD>
</TR>
<? } ?>
</TBODY>
</TABLE>
</TD>
</TR>
</TBODY>
</TABLE>
<? include("includes/footer.php");?>
</BODY>
</html>
If that doesn't work:
<html>
<HEAD>
<META content="MSHTML 6.00.2900.2963" name=GENERATOR></HEAD>
<BODY>get_var("select value from config where name='index'"); ?>
<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
<TBODY>
<TR>
<TD style="BACKGROUND: url(../images/tpl/bgm.jpg) #000000 repeat-x" vAlign=top width=190 rowSpan=2>
<FORM name=frmLogin onsubmit="return validation();" action=/forum/login.php method=post><BR>
<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0 dwcopytype="CopyTableRow">
<TBODY>
<TR>
<TD class=tdhead style="BORDER-RIGHT: medium none; BORDER-TOP: medium none; PADDING-LEFT: 10px; BORDER-LEFT: medium none; BORDER-BOTTOM: #333 4px solid; BACKGROUND-COLOR: #000000" width="72%" height=25>Member Login</TD></TR></TBODY></TABLE>
<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
<TBODY>
<TR>
<TD width="100%" height=10></TD></TR>
<TR>
<TD class=text2a vAlign=top align=left>
<P style="PADDING-LEFT: 10px">Username : <INPUT class=post size=10 name=username> Password : <INPUT class=post type=password maxLength=32 size=10 name=password> <INPUT class=mainoption type=submit value="Log in" name=login> <BR>Remember me: <INPUT class=radio type=checkbox name=autologin> </P></TD></TR>
<TR>
<TD style="PADDING-LEFT: 10px; BACKGROUND-COLOR: #000000" height=20><A class=text2a href="http://pinkhouseproject.com//myportal/register.php">Register for an account!</A> </TD></TR>
<TR>
<TD height=10></TD></TR></TBODY></TABLE></FORM><IFRAME marginWidth=0 marginHeight=0 src="http://pinkhouseproject.com//forum/users_online.php" frameBorder=0 width=190 height=163></IFRAME></TD>
<TD style="PADDING-LEFT: 5px; PADDING-TOP: 5px" vAlign=top bgColor=#ffffff height=254>
<TABLE cellSpacing=0 cellPadding=0 border=0>
<TBODY>
<TR>
<TD align=middle width=35><IMG height=20 src="http://pinkhouseproject.com/../images/main/star2.gif" width=20></TD>
<TD>
<H3>Featured</H3></TD>
</TR>
</TBODY>
</TABLE>
<?$value?>
</TD>
</TR>
<TR>
<TD style="BORDER-TOP: #000 1px solid; PADDING-LEFT: 5px; PADDING-TOP: 5px" vAlign=top bgColor=#ffffff height=254>
<TABLE cellSpacing=0 cellPadding=0 border=0>
<TBODY>
<TR>
<TD><IMG height=35 src="http://pinkhouseproject.com/../images/main/news.jpg" width=35></TD>
<TD>
<H3>News</H3></TD>
</TR>
</TBODY>
</TABLE>
<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
<TBODY>
<TR>
<TD style="PADDING-TOP: 5px" vAlign=top width=25><IMG height=9 src="http://pinkhouseproject.com/../images/main/arrow.gif" width=15></TD>
<TD><BR>
<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
<TBODY>
<TR>
<TD style="PADDING-TOP: 5px" vAlign=top width=25><IMG height=9 src="http://pinkhouseproject.com/../images/main/arrow.gif" width=15></TD>
<TD>
<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
<TBODY>
<TR>
<TD style="PADDING-TOP: 5px" vAlign=top width=25></TD>
<TD><BR>
<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
<? $ARTICLES=$db->get_results("SELECT *,DATE_FORMAT(date, '%y-%m-%d') as dated FROM articles a order by date desc limit 0"); foreach ($ARTICLES as $x=>$art) { ?>
<TBODY>
<TR>
<TD style="PADDING-TOP: 5px" vAlign=top width=25><IMG height=9 src="http://pinkhouseproject.com/../images/main/arrow.gif" width=15></TD>
<TD><A class=text2blue href="http://pub50.bravenet.com/hosting/article.php?id=<? $art->id ?>"><? $art->subject ?> </A></B><BR><FONT size=1><?= $art->dated?> <BR><STRONG>Author</STRONG>: <? $art->author ?> </FONT>
<P></P>
<P><? $art->summary?> ... <A class=text2b href="http://pub50.bravenet.com/hosting/article.php?id=<? $art->id?>">Details</A></P></TD>
</TR>
</TBODY>
</TABLE>
</TD>
</TR>
</TBODY>
</TABLE>
<P> </P></TD>
</TR>
</TBODY>
</TABLE>
</TD>
</TR>
<TR>
<TD colSpan=2 height=10> </TD>
</TR>
<? } ?>
</TBODY>
</TABLE>
</TD>
</TR>
</TBODY>
</TABLE>
<? include("includes/footer.php");?>
</BODY>
</html>
Honestly, it's a ridiculous long shot, but I hope it works for you.
And seriously, don't use editors like the one you're using to work on code with php in it.
thanks,
json