Quote:
Originally Posted by tnguy3n
PHP Code:
$count = $DB_site->query(SELECT COUNT(*) AS totalthread FROM " . TABLE_PREFIX . "thread");
while($count = $DB_site->fetch_array($counts))
{
$totalthread = $count['totalthread'];
}
print("Total threads: $totalthread");
|
thank you for your help tnguy3n, really appericiate it. The only thing is that I am getting a "prase error, unexpected T-string", do you know what might cause this error by any chance? also if it helps I use vbulletin 3, thank you.