I am using the following call to get table totals and format the number results... and it really seems to be cripling load time when there are a several (new users, no of logins, personal posts etc.) of these counters on a page...
<?php
$numresults3=mysql_query("select * FROM users WHERE TO_DAYS(NOW()) = TO_DAYS(last_login) ");
$todaylog=mysql_num_rows($numresults3); $todaylg=number_format($todaylog);
?>
The WHERE clause fields ARE indexed ...
Is there a best way to do counts that don't kill load time.?