$dd = date("d"); if(!$Q){ $YY = date("Y"); $mm = date("n"); }else{ if($Q >12){ $N_day = date("Y/n", mktime(0,0,0,$Q,$dd,$Q1)); $N_day1=explode("/", $N_day); $YY = $N_day1[0]; $mm= $N_day1[1]; }else{ $YY = $Q1; $mm= $Q; } } $S_day = date("w", mktime(0,0,0,$mm,1,$YY)); ##### µ¥ÀÌÅͺ£À̽º ¿¬°á $conn = @mysql_connect('localhost', 'doumy', 'ehdnal114') or die('µðºñ¿¬°á½ÇÆÐ!!');; $db = mysql_select_db(doumy) or die('µðºñ¼±Åà ½ÇÆÐ'); $Today = $YY."-".str_pad($mm, 2, "0", STR_PAD_LEFT)."-%"; $result = mysql_query("select * from LunarToSolar where solar_date like '$Today'"); while($row = mysql_fetch_array($result)){ $i=$i+1; $T_day[$i] = $row[solar_date]; $M_day[$i] = $row[lunar_date]; $ganji[$i] = $row[ganji]; } $day = array(0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31); if($YY % 4 == 0){//À±´Þüũ $day[2] = 29; } $Pre = $mm-1; if($Pre =='0'){ $Pre = '12'; $YYY = $YY-1; }else{ $YYY = $YY; } $Next = $mm+1; echo ""; echo ""; echo "
¢¸ ".$YY."³â ".$mm."¿ù ¼Õ ¾ø´Â³¯!!¢º
"; echo "ÀÏ | ¿ù | È | ¼ö | ¸ñ | ±Ý | Åä |
"; }else if($kk == ' '){ echo " | ".$S_color.$kk.$S_color_end." | ";
}else{
echo "À½ $M_day[$kk] ',''); return true;\" onmouseout=\"nd(); return true;\">".$S_color.$kk.$S_color_end." | ";
}
}
echo "||||
µµ¿ì¹Ì114 [¼Õ ¾ø´Â ³¯] ¾È³»ÀÔ´Ï´Ù. |