Diva
12-10-2001, 07:47 AM
I'll never be a hacker, that's for darn sure! Would someone please help me to fix this hack. What I would like is:
Total Threads: 426 | Total Posts: 3,592
New Threads Today: | New Posts Today:
Notice the missing numbers in todays totals! Heh. What I 'thought' would work is:
In the index.php:
// get number of posts and Threads today
$datecut=mktime(0,0,0,date("m"), date("d"), date("y"));
$countpoststoday=$DB_site->query_first('SELECT COUNT(*) AS posts FROM post WHERE dateline>='$datecut'");
$totalpoststoday=number_format($countpoststoday['posts']);
$countthreadstoday=$DB_site->query_first('SELECT COUNT(*) AS threads FROM thread WHERE dateline>='$datecut'");
$totalthreadstoday=number_format($countthreadstoda y['threads']);
Any suggestions? Thanks bunches!
Total Threads: 426 | Total Posts: 3,592
New Threads Today: | New Posts Today:
Notice the missing numbers in todays totals! Heh. What I 'thought' would work is:
In the index.php:
// get number of posts and Threads today
$datecut=mktime(0,0,0,date("m"), date("d"), date("y"));
$countpoststoday=$DB_site->query_first('SELECT COUNT(*) AS posts FROM post WHERE dateline>='$datecut'");
$totalpoststoday=number_format($countpoststoday['posts']);
$countthreadstoday=$DB_site->query_first('SELECT COUNT(*) AS threads FROM thread WHERE dateline>='$datecut'");
$totalthreadstoday=number_format($countthreadstoda y['threads']);
Any suggestions? Thanks bunches!