All it does is display 1 thread.
Heres the database:
>forums > topics
>> forum_title
>> forum_id
>> forum_section
>> forum_views
>> forum_replies
>> forum_creator
>> forum_sticky
But for some reason, when theres already something in the database, it doesnt post it.
Heres what I think it is
> forums > topics
> forum_sticky (2 rows of 0)
But heres the code:
for($x=1;$x<=$rn;$x++) {
require "Database/connect.php";
$q = mysql_query("SELECT * FROM topics WHERE forum_id='$x'");
while($q = mysql_fetch_array($q)) {
if($q['forum_sticky'] == "0") {
if($q['forum_section'] == $_GET['ID']) {
echo "
<tr style='background-color:#D4E4F4;'>
<td><span style=\"height:15px;width:100%;font-weight:bold;font:12px/1.2 Tahoma, Verdana, Arial;padding:3px;margin:4px;font-weight:bold;\">".$q['forum_title']."</span></td>
<td><span style=\"height:15px;width:100%;font-weight:bold;font:12px/1.2 Tahoma, Verdana, Arial;padding:3px;margin:4px;font-weight:bold;\">".$q['forum_creator']."</span></td>
<td><span style=\"height:15px;width:100%;font-weight:bold;font:12px/1.2 Tahoma, Verdana, Arial;padding:3px;margin:4px;font-weight:bold;\">".$q['forum_replies']."</span></td>
<td><span style=\"height:15px;width:100%;font-weight:bold;font:12px/1.2 Tahoma, Verdana, Arial;padding:3px;margin:4px;font-weight:bold;\">".$q['forum_views']."</span></td>
</tr>";
}
}
}
}
Just fixed width problems....