<?
PULL ADDITIONAL FILES
include_once ("./settings.php");
CONNECT TO THE MySQL SERVER
$link = mysql_connect($host,$user,$password);
SELECT THE DATABASE NEEDED
mysql_select_db("$base");
$bgcolor="#99CCFF";
START THE TABLE INFORMATION FOR THE RESULTING INFORMATION
echo '<html><body bgcolor="#FFFFC0"><BR><BR></center>
<table align=center border=1><td><TABLE cellpadding=5 WIDTH=100%><tr><td>FORUM NAME </td><td>MODERATOR
</td><td>THREAD NUMBER</td>';
BEGIN THE SQL QEURY FOR THE INFORMATION
SHOW ALL THE CONTENTS
$result=mysql_db_query($base, "select messageboard.category_name, customer.username,count(thread.id)
from messageboard, customer, thread WHERE messageboard.category_id=thread.id_category
AND
messageboard.moderator = customer.id
group by thread.id_category",$link);
$result1=mysql_db_query($base, ""select count(thread.id) from messageboard)
if ($result > 0)
{
$num4=mysql_num_rows($result);
if($num4!=0)
{
$n=0;
while ( $n<$num4 )
{
call and show the ID
$category_name = mysql_result($result,$n,"messageboard.category_name");
call and show the MODARATOR
$customer=mysql_result($result,$n,"customer.username");
call and show the THREADS NUMBER
$post_id=mysql_result($result,$n,"thread.id");
$n++;
echo "<tr>";
echo "<TD bgcolor=$bgcolor><font size='+1'><b>$category_name</td>";
echo "<TD bgcolor=$bgcolor><font size='+1'><b>$customer</td>";
echo "<TD bgcolor=$bgcolor><font size='+1'><b>$post_id</td>";
echo "</tr>";
if($bgcolor == "#99CCFF") {
$bgcolor="#FF9999";
} else {
$bgcolor="#99CCFF";
}
}
}
echo "</table></table></body></html>";
}
?>