$this_month=date("Y-m");
$query = "SELECT * FROM genki WHERE area='1' and date like '$this_month%' and flg='0' and title<>'' order by date DESC,gid DESC ";
$result = mysql_query($query) or die(mysql_error());
while($row=mysql_fetch_array($result)) {
$gid=$row[gid];
$title=$row[title];
$comment=mb_substr(strip_tags($row[comment]),0,200);
echo "
$title";
echo "
";
echo $comment;
echo "...";
}
?>