Almax1
09-14-2003, 07:33 PM
Right lets start, I want to list 2 forums (thread starters) (xx,xx) on a new page
now im puzzled probably miles out
1 php file named topp.php & 1 template named topp
=============================================
<?php
error_reporting(7);
$templatesused = "topp";
require('./global.php');
$postsresult = mysql_query("SELECT COUNT(*) AS count,postuserid,postusername FROM thread WHERE forumid IN (xx,xx) GROUP BY postuserid ORDER BY count DESC LIMIT $maxposters;") or die("Unable to complete query");
while ($topposters = mysql_fetch_array($postsresult)):
if (($counter++ % 2) != 0) {
$backcolor="{firstaltcolor}";
$bgclass="alt1";
} else {
$backcolor = "{secondaltcolor}";
$bgclass="alt2";
}
eval("dooutput(\"".gettemplate("topp")."\");");
endwhile;
?>
================================================
any help appreciated ;)
now im puzzled probably miles out
1 php file named topp.php & 1 template named topp
=============================================
<?php
error_reporting(7);
$templatesused = "topp";
require('./global.php');
$postsresult = mysql_query("SELECT COUNT(*) AS count,postuserid,postusername FROM thread WHERE forumid IN (xx,xx) GROUP BY postuserid ORDER BY count DESC LIMIT $maxposters;") or die("Unable to complete query");
while ($topposters = mysql_fetch_array($postsresult)):
if (($counter++ % 2) != 0) {
$backcolor="{firstaltcolor}";
$bgclass="alt1";
} else {
$backcolor = "{secondaltcolor}";
$bgclass="alt2";
}
eval("dooutput(\"".gettemplate("topp")."\");");
endwhile;
?>
================================================
any help appreciated ;)