MySQL Forums
Forum List  »  PHP

Month events
Posted by: Paulo Monteiro
Date: April 24, 2006 11:46AM

I have registers in a mysql DB and I want to show them for months. I think I have a var like this:


PHP Code:
$id = "month(now())";
$sql = "select * from agenda_geral where agenda='desporto' and month = ".$id." and area_ID = 1 order by day" ;


But what I have to do for show the next or the previous month events in the same page without create a new??

Options: ReplyQuote


Subject
Written By
Posted
Month events
April 24, 2006 11:46AM
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.