Maison > Article > développement back-end > 怎么实现从数据库读取后重新从1到10排序
如何实现从数据库读取后重新从1到10排序
$query = "select * from software order by cnet_total_downloads limit 10";<br /> $result = mysql_query($query) OR die(mysql_error());<br /> while($row = mysql_fetch_array($result))<br /> {<br /> echo "X.".$row['software_name'];<br /> }