//¿À´Ã³¯Â¥? $today=date("Ymd"); //ÇÑÆäÀÌÁö¿¡ Ãâ·ÂµÉ °Ô½Ã¹° ¼ö $limite=10; //ÇÑÆäÀÌÁö¿¡ º¸¿©Áú ÆäÀÌÁö¸µÅ©ÀÇ ¼ö $page_num=5; //background color¼³Á¤ $bgcolor1="ccccff"; $bgcolor2="f5f5f5"; //DB°èÁ¤ ÀÎÁõ include('mission.php'); //Sort¹æ¹ýÁöÁ¤ if(!$howsort) { $howsort="udate"; }else{} //Sort°¡ ¿ª¹æÇâÀΰ¡? if(!$desc) { $desc="desc"; $desc_u="no"; $desc_n="desc"; }elseif($desc==no) { $desc=""; $desc_u="desc"; $desc_n="no"; }elseif($desc==desc) { $desc="desc"; $desc_u="no"; $desc_n="desc"; } //DB¿Í ¿¬°á $result = mysql_query("select * from mission_group order by $howsort $desc", $connection); $total = mysql_num_rows($result); // ÆäÀÌÁö°¡ ¾øÀ¸¸é 1·Î Á¤ÇÑ´Ù if(!$page) { $page=1; }else{} $total_page = intval(($total-1) / $limite)+1; // ÃÑ ÆäÀÌÁö¼ö¸¦ ±¸Çؿ´٠$first = ($page-1)*$limite; // »Ì¾Æ¿Ã °Ô½Ã¹° [óÀ½] $last = $limite; // »Ì¾Æ¿Ã °Ô½Ã¹° [³¡] // »Ì¾Æ¿Ã °Ô½Ã¹°[³¡] : ÃÑ °Ô½Ã¹° ¼ö°¡ ÇÑÆäÀÌÁö´ç Ãâ·ÂµÉ °Ô½Ã¹°¼öº¸´Ù ÀûÀ¸¸é ÃÑ °Ô½Ã¹°¼ö¸¦ »Ì¾Æ¿Ã °Ô½Ã¹°[³¡] À¸·Î Á¤ÇÑ´Ù if($total < $last) $last = $total; // »Ì¾Æ¿Ã °Ô½Ã¹° [óÀ½]~»Ì¾Æ¿Ã °Ô½Ã¹° [³¡] ±¸ÇÑ°ªÀ¸·Î ÇÑÆäÀÌÁö¿¡ ±ÛÀ» »Ì¾Æ ¿Â´Ù $limit = "limit $first,$last"; //°Ô½ÃÆäÀÌÁö¿¡ µû¸¥ °Ô½Ã¹° ¼öÀÇ ½ÃÀÛ $total_limit = ($limite*$page)-$limite; echo ""; include "../head.htm"; echo ("