Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: Top 100 , naujausi 100

Parašė Narysx· 2010 Rugp. 17 14:08:47
#15

Taip, čia top 100 pagal parsisiuntimus. Dar pakeisk jį į šitą, rodys kiek atsisiuntė:

<?php

require_once "maincore.php";
require_once "subheader.php";
require_once "side_left.php";

openside("TOP siuntiniai");
$top = dbquery("SELECT * from ".$db_prefix."downloads order by download_count DESC LIMIT 0,100");
$n=0;
while ($q = dbarray($top))
{
$n++;
$download_id = $q['download_id'];
$download_title = $q['download_title'];
$download_count = $q['download_count'];
echo "$n <a href='downloads.php?page_id=$download_id'>$download_title</a> - $download_count pars.<br>";
}
closeside();

require_once "side_right.php";
require_once "footer.php";

?>




o čia new 100:

<?php

require_once "maincore.php";
require_once "subheader.php";
require_once "side_left.php";

openside("TOP siuntiniai");
$top = dbquery("SELECT * from ".$db_prefix."downloads order by download_datestamp DESC LIMIT 0,100");
$n=0;
while ($q = dbarray($top))
{
$n++;
$download_id = $q['download_id'];
$download_title = $q['download_title'];
echo "$n <a href='downloads.php?page_id=$download_id'>$download_title</a><br>";
}
closeside();

require_once "side_right.php";
require_once "footer.php";

?>