|
include 'include/left_img.html'; ?>
|
|
|
|
//µ¥ÀÌÅÍ º£À̽º ¿¬°áÇϱâ
include "./common/config.php";
include "./common/util.php";
$board = "notice";
$page_size=5;
#########################################################################
if (!$no || $no < 0) $no=0; //$no °ªÀÌ ¾È³Ñ¾î ¿À°Å³ª À߸øµÈ(À½¼ö)°ªÀÌ ³Ñ¾î¿À´Â °æ¿ì 0À¸·Î ó¸®
#########################################################################
// µ¥ÀÌÅͺ£À̽º¿¡¼ ÆäÀÌÁöÀÇ Ã¹¹ø° ±Û($no)ºÎÅÍ $page_size ¸¸ÅÀÇ ±ÛÀ» °¡Á®¿Â´Ù.
$query = "select * from $board $search order by thread desc limit $no,$page_size";
$result = mysql_query($query, $conn);
$result_count=mysql_query("select count(*) from $board $search",$conn);
$result_row=mysql_fetch_row($result_count);
$total_row = $result_row[0];
while($row=mysql_fetch_array($result))
{
if(strlen($row[title]) > 45)
{
$text = substr($row[title],0,45);
$text .= "...";
}
else
{
$text = $row[title];
}
?>
|
=date("Y-m-d",$row[wdate])?> =$text?> |
}
?>
|