How to count posts in tags within time limit

WP Core doesn’t have a way to pull tags by how many posts were published associated to a tag in a given time period. You’ll need to roll your own solution. Use $wpdb->prepare as a best practice; the Codex article on the wpdb class should give you the info you need to run the query in a WP way.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)