2016-01-19, 09:47 AM
I'm looking at the best way to calculate the posts made today for the entire forum I have two theories on how I would do this.
Theory 1:
I select dateline and numposts from the mybb_stats table select the latest datelines number of posts and deduct the the other rows number of posts from the current datelines number of posts.
Theory 2:
I check the mybb_posts table for where the dateline is todays date the issue with this is it's a unix timestamp that includes the date/time so specifying todays date in a unix timestamp would be an issue as it wouldn't have the same timestamp as a post.
Any help would be appreciated.
Theory 1:
I select dateline and numposts from the mybb_stats table select the latest datelines number of posts and deduct the the other rows number of posts from the current datelines number of posts.
Theory 2:
I check the mybb_posts table for where the dateline is todays date the issue with this is it's a unix timestamp that includes the date/time so specifying todays date in a unix timestamp would be an issue as it wouldn't have the same timestamp as a post.
Any help would be appreciated.