",$content_vew); //新着情報1項目の置換 $sql = "SELECT * FROM ".$db."news ORDER BY inputdate DESC LIMIT 1"; $res = mysql_query($sql,$con); while($list = mysql_fetch_array($res)){ $list_newinfo_id = $list["id"]; $list_newinfo_title = $list["title"]; $list_newinfo_contents = $list["contents"]; $list_newinfo_inputdate = $list["inputdate"]; $list_newinfo_inputdate_disp = date("Y/m/d",$list_newinfo_inputdate); } mysql_free_result($res); $chkmoji = "\[new;INFO;new\]"; $content_vew = ereg_replace($chkmoji,$list_newinfo_contents,$content_vew); ?>