MySQL Forums
Forum List  »  PHP

Events dates!!
Posted by: Paulo Monteiro
Date: May 03, 2006 04:46AM

Hi!!! I have next code:


PHP Code:
<? $id = "month(now())";
if($arrl["periodo"] == 0) //se for só um dia
echo $arrl["day"]." de ".trata_month($arrl["month"]);
elseif($arrl["periodo"] != 0)// periodo de tempo no mesmo mês
echo $arrl["day"]." a ".($arrl["day"] + $arrl["periodo"])." de ".trata_month($arrl["month"]);
...



and to 3 more echos...

1º an expression with separated several days of two months. Example: 25, 26 of April and 2 of May

2º an expression with periodic time of two months. Example: 25 a 30 of April and 4 a 7 of May

3º an expression if a event had the 26 of April a 7 of May and if the current month is May it must show " Even 7 of May"

Options: ReplyQuote


Subject
Written By
Posted
Events dates!!
May 03, 2006 04:46AM
May 03, 2006 06:33AM
May 03, 2006 08:29AM
May 03, 2006 09:00AM


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.