PHP Code:
<table width="100%" cellpadding="4" cellspacing="0" border="0">
<?php
$link_id = mysql_connect( [ None of your business!! ] )
mysql_select_db("nmahon_nmahonsanctuary", $link_id);
$i = 1;
$result = mysql_query("SELECT topic_time, topic_id, topic_title FROM `phpbb_topics` ORDER BY `topic_time` DESC LIMIT 10");
$result2 = mysql_fetch_row($result);
while($i < 10) {
if($i%2!=0){
$class = "row1";
} else {
$class = "row2";
}
?>
<tr>
<td class="<?=$class?>">
<a href="viewtopic.php?t=<?=$result2[1]?>"><?=$result2[2]?></a>
</td>
</tr>
<?php
}
?>
</table>
Hello,
This code is supposed to grab the 5 latest topics from phpBB, arrange them in a table, and link to them.
It seems to be an infinate loop:
http://www.vereor.com/sanctuary
Thanks,
Nick