Answer the question
In order to leave comments, you need to log in
How to display the time interval that I need?
I need to display records with an interval of half a year.
I write:
SELECT * FROM `calendar` WHERE MONTH(`date`) BETWEEN MONTH(NOW()) AND (MONTH(NOW()) + 4)
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question