I'm trying to make it so it will display the amount of posts the author has made. I have this:
$countposts=mysql($config->DBname,"select author, count() from forumthreads where author=$author group by author");
$posts=mysql_result($countposts,1,"count()");
and then a bit down, I have this:
echo "<font face='",$config->fontfacemain,"'> $author</font> <i><font color='",$config->messagecolor,"'> (",$posts," posts)</i></font></td></tr>";
I know my error is in the $post variable. I've messed around with it and tried different things, but I can't get it to work. I'm not sure what I'm supposed to put for the $posts variable so I get a number that'll display.