//DB接続 include "./admin/ms_query.php"; $query = "SELECT * FROM tb_whats INNER JOIN tb_cat ON tb_whats.cat = tb_cat.cid "; $query .= "WHERE disp=1 AND cat <> 5 "; $query .= "ORDER BY tb_whats.day1 DESC,tb_whats.day2 DESC,tb_whats.day3 DESC LIMIT 0,5"; $result = mysql_query($query); while ($row = mysql_fetch_array($result)) { include "./admin/hoge.php"; $list .= "