Jump to content

[SOLVED] Finding months with data


AndyB

Recommended Posts

I have a simple 'blog' database table containing content with the posted date entered as date (yyyy-mm-dd).  Some months there will be many items, some months there may be none.

 

Can I generate a list of months where there is at least one item, without lots of separate queries? If so, how?

Link to comment
https://forums.phpfreaks.com/topic/47156-solved-finding-months-with-data/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.