Mijae
06-19-2004, 10:32 PM
I currently have
<?php
error_reporting(7);
require('http://xxx/forum/global.php');
$numbersmembers=$DB_site->query_first('SELECT COUNT(*) AS users,MAX(userid) AS max FROM user');
$numbermembers=number_format($numbersmembers['users']);
// get total posts
$countposts=$DB_site->query_first('SELECT COUNT(*) AS posts FROM post');
$totalposts=number_format($countposts['posts']);
$countthreads=$DB_site->query_first('SELECT COUNT(*) AS threads FROM thread');
$totalthreads=number_format($countthreads['threads']);
?>
And I get this:
Fatal error: Call to a member function on a non-object in /home/xxx/public_html/test.php on line 5
How can I make it work? Without using templates :D
Please someone help, it used to be so easy with vB2, and now I cant make it work.
<?php
error_reporting(7);
require('http://xxx/forum/global.php');
$numbersmembers=$DB_site->query_first('SELECT COUNT(*) AS users,MAX(userid) AS max FROM user');
$numbermembers=number_format($numbersmembers['users']);
// get total posts
$countposts=$DB_site->query_first('SELECT COUNT(*) AS posts FROM post');
$totalposts=number_format($countposts['posts']);
$countthreads=$DB_site->query_first('SELECT COUNT(*) AS threads FROM thread');
$totalthreads=number_format($countthreads['threads']);
?>
And I get this:
Fatal error: Call to a member function on a non-object in /home/xxx/public_html/test.php on line 5
How can I make it work? Without using templates :D
Please someone help, it used to be so easy with vB2, and now I cant make it work.