日期:2014-05-16 浏览次数:20535 次
$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++;
}