- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
$month=$_POST["month"];
$year=$_POST["year"];
$week=$_POST["week"];
$month_c=$month;
switch($month_c){
case 1:
case 3:
case 5:
case 7:
case 8:
case 10:
case 12:
$c=31;
break;
case 2:
if (checkdate(2, 29,$year)) {
$c=29;
}else{
$c=28;}
break;
case 4:
case 6:
case 9:
case 11:
$c=30;
break;
} // switch
guest 11.06.2009 11:38 # 0
guest 11.06.2009 22:56 # 0
Крутая функция подсчета числа дней в месяце? :)
guest 12.06.2009 14:47 # 0
ага)