<?php include('conn.php'); $result = mysql_query("SELECT * FROM data WHERE `grade`='大二' ORDER BY `downloads` DESC LIMIT 5"); $info=mysql_fetch_array($result); do{ echo $info['link']."<br>"; } while($info=mysql_fetch_array($result)); ?>
conn.php を見てください
conn.php を見てください