Quote:
Originally posted by Zothip
<?php
require("forum/admin/config.php3");
$db=mysql_connect($servername,$dbusername,$dbpassw ord);
mysql_select_db($dbname);
$query=mysql_query("SELECT COUNT(threadid) AS totalthreads FROM thread");
$row=mysql_fetch_array($query);
$totalthreads = $row[totalthreads];
echo "$totalthreads total threads";
?>
That code shows the total number of posts on the board, not in a specific forum.
|
Read this thread a little closer, im not even the one who posted that code