Quote:
Originally posted by NerdNations
any way so it can be like this
Threads: XXX | Posts: xxx | Total Posts: XXX
|
Sure, why not:
Leave the original code as it is and add these 2 lines after them:
$count_maxx_posts=$DB_site->query_first('SELECT postid AS posts FROM post ORDER BY postid DESC LIMIT 1' );
$count_maxx_threads=$DB_site->query_first('SELECT threadid AS threads FROM thread ORDER BY threadid DESC LIMIT 1');
Now you can change your main page template and use these 2 variables $count_maxx_posts and $count_maxx_threads in anywhere or in any way you like..
Logician