MySQL Forums
Forum List  »  PHP

Re: Month events
Posted by: Bill Karwin
Date: April 24, 2006 11:58AM

Try something like this:

select *
from agenda_geral
where agenda='desporto' and area_ID = 1
and (month = month(now()) or month = month(now() - interval 1 month))
order by day

By the way, is your query meant to show events from the current month of any year, or just the current year? It shows events from the current month of any year.

Regards,
Bill K.

Options: ReplyQuote


Subject
Written By
Posted
April 24, 2006 11:46AM
Re: Month events
April 24, 2006 11:58AM
April 26, 2006 03:39AM
April 26, 2006 11:43AM
April 24, 2006 12:25PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.