]yay! :] it worked! thanx Logician!!!
used this script:
PHP Code:
<?
$path = "/home/wooolf/WWW/forum/admin"; // set the path to your admin directory. see above for info about this.
require("$path/config.php");
mysql_connect("$servername", "$dbusername", "$dbpassword") or die("Couldnt find MYSQL!");
mysql_select_db("$dbname") or die ("Couldnt find DB!");
$totalviews=mysql_query("SELECT SUM(views) AS threadviews FROM thread");
if (mysql_error()) {echo "mySQL error:"; echo mysql_error(); exit;}
else
{echo mysql_result($totalviews,0);}
?>