Parker Clack
11-30-2001, 03:49 AM
What is the query to run for counting thread views?
I have:
$countviews=$DB_site->query_first('SELECT COUNT(*) AS views FROM thread');
$totalviews=number_format($countviews['views']);
Which of course doesn't work. What do I need to change to get this work right?
Thanks,
Parker
I have:
$countviews=$DB_site->query_first('SELECT COUNT(*) AS views FROM thread');
$totalviews=number_format($countviews['views']);
Which of course doesn't work. What do I need to change to get this work right?
Thanks,
Parker