"; break; case "tell2": $title_img=""; break; } include "../../top.html"; include "../../dbcon.inc"; if($sel != "" ) { switch($sel) { case "1" : $where = "where (title like '%$keywords%' or content like '%$keywords%' )"; break; case "2" : $where = "where title like '%$keywords%' "; break; case "4" : $where = "where content like '%$keywords%' "; break; } } if (!$page) { $page=1;} $pagesize=20; $listsize=10; //ÇÏ´Ü ¸®½ºÆ® °¹¼ö $query=mysql_query("select count(*) from $tname $where"); $ro=mysql_fetch_array($query); $total=$ro[0]; $lownumber=(($page-1)*$pagesize); $totalpage = ceil($total/$pagesize); //ÃÑÆäÀÌÁö¼ö $totalblock = ceil($totalpage/$listsize); //ÃÑºí·°¼ö $block=ceil($page/$listsize); //ÇöÀç ºí·° $first_page=($block-1)*$listsize; //ÇöÀçºí·°¿¡¼­ Ãâ·ÂµÉ ù¹øÂ° ÆäÀÌÁö $last_page=$block*$listsize; //ÇöÀçºí·°¿¡¼­ Ãâ·ÂµÉ ¸¶Áö¸· ÆäÀÌÁö if($block>=$totalblock){ $last_page=$totalpage; } $query1=mysql_query("select * from $tname $where order By num desc limit $lownumber,$pagesize"); ?>
=2){ $cha=$pagesize*($page-1); $total=$total-$cha; } while($row=mysql_fetch_array($query1)) { $title=stripslashes($row[title]); $ttitle1=$title; $ttitle1=ereg_replace("\"","'",$ttitle1); $titleLen=38; if (strLen($title) >= $titleLen){ $title=substr($title,0,$titleLen-3)."..."; } $writeday=substr($row[writeday],0,10); ?>
Total:
µ¥ÀÌŸ°¡ Á¸ÀçÇÏÁö ¾Ê½À´Ï´Ù.
$title"); //±ÛÁ¦¸ñ if ($writeday==date('Y-m-d')){ print(" "); //NEW Ç¥½Ã } ?> °ü¸®ÀÚ  
 
1){ $mypage=$first_page; echo("  "); }?> $i  "); }else{ echo("$i  "); } } ?> "); } ?>