Well I created this code rather fast. I just can't seem to make it get the correct number results. I know I am over looking something small.
PHP:
$newusers = $db->query_first('
SELECT COUNT(*) AS count
FROM ' . TABLE_PREFIX . 'user
WHERE joindate >= "' . strtotime("-1day") . '"
');
$newmembers = number_format($newusers['count']);
$newposts = $db->query_first('
SELECT COUNT(*) AS count
FROM ' . TABLE_PREFIX . 'post
WHERE dateline >= "' . strtotime("-1day") . '"
');
$newposts = number_format($newposts['count']);