0 AND seeders = 0 ORDER BY leechers DESC LIMIT 40");
if (mysql_num_rows($res) > 0) {
print("
\n");
print("| Torrent | Seeders | Leechers |
\n");
while ($arr = mysql_fetch_assoc($res)) {
$torrname = htmlspecialchars($arr['name']);
if (strlen($torrname) > 55)
$torrname = substr($torrname, 0, 55) . "...";
$ttl = (28*24) - floor((gmtime() - sql_timestamp_to_unix_timestamp($arr["added"])) / 3600);
print("| ".$torrname." | ".$arr['seeders']." | ".number_format($arr['leechers'])." |
\n");
}
print("
\n");
} else
print("-- There are no torrents needing seeds right now --\n");
stdfoot();
?>