Rumah > Artikel > pembangunan bahagian belakang > php输出数据库信息,多了不该有的字符
<?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