$query = $db->simple_select(TABLE_PREFIX."users", "regdate", "", array('order_by' => 'regdate', 'limit' => 1)); $result = $db->fetch_array($query); $days = (time() - $result['regdate']) / 86400;
|
$query = $db->simple_select(TABLE_PREFIX."users", "regdate", "", array('order_by' => 'regdate', 'limit' => 1)); $result = $db->fetch_array($query); $days = (time() - $result['regdate']) / 86400;
|
// Get "per day" things $postsperday = my_number_format(round(($stats['numposts'] / $days), 2)); $threadsperday = my_number_format(round(($stats['numthreads'] / $days), 2));
| // Get "per day" things $postsperday = my_number_format(round(($stats['numposts'] / $days), 2)); $threadsperday = my_number_format(round(($stats['numthreads'] / $days), 2));
|