127) $han++; else $eng++; $cut_size=$cut_size+(int)$han*0.6; $point=1; for ($i=0;$i$cut_size) return $pointtmp."..."; if (ord($msg[$i])<=127) { $pointtmp.= $msg[$i]; if ($point%$cut_size==0) return $pointtmp."..."; } else { if ($point%$cut_size==0) return $pointtmp."..."; $pointtmp.=$msg[$i].$msg[++$i]; $point++; } $point++; } return $pointtmp; } include_once("db_conn.php"); $sql = "select no, subject, reg_date from zetyx_board_CCBNEWS where is_secret!='1' and headnum<0 order by reg_date desc limit 5 "; // headnum,arrangenum $result = mysql_query($sql); for ($i=0; $row=mysql_fetch_array($result); $i++) { $no = $row[no]; $datetype="Y-m-d"; $reg_date = date($datetype, $row[reg_date]); $subject = cut_str(stripslashes($row[subject]),20); $title = iconv("EUC-KR","UTF-8",$subject); ?>
= (time() - (24 * 3600)) ) { ?>