include("../temp/database.php"); $sql = "SELECT "; $sql.= " id , "; $sql.= " ev_day, "; $sql.= " ev_title,"; $sql.= " ev_body ,"; $sql.= " ev_subtitle "; $sql.= " FROM news order by id desc limit 0,5"; $rtn = mysql_query( $sql , $con ) ; $artn = mysql_fetch_row($rtn) ; while( $artn ) { $h_evid[] = mb_convert_encoding($artn[0],"SJIS"); $h_evday[] = mb_convert_encoding($artn[1],"SJIS"); $h_evtitle[] = mb_convert_encoding($artn[2],"SJIS"); $h_evbody[] = mb_convert_encoding($artn[3],"SJIS"); $h_evsubtitle[] = mb_convert_encoding($artn[4],"SJIS"); $artn = mysql_fetch_row($rtn); } mysql_close($con); $page_title = "キャンーペン"; include("../temp/head.php"); ?>
\n";
for($i=0; $i
";
print "".$h_evtitle[$i]."
";
print " ".nl2br($h_evsubtitle[$i])."
";
print " ".nl2br($h_evbody[$i])."
";
}
print "