时间:2021-07-01 10:21:17 帮助过:6人阅读
$query = "select * from software order by cnet_total_downloads limit 10";
$result = mysql_query($query) OR die(mysql_error());
while($row = mysql_fetch_array($result))
{
echo "X.".$row['software_name'];
}
$query = "select * from software order by cnet_total_downloads limit 10";
$result = mysql_query($query) OR die(mysql_error());
while($row = mysql_fetch_array($result))
{
static $i=1;
echo "$i.".$row['software_name'];
$i++;
}