Thanks very very much that did the trick mate
:D :lol:
:D :lol:
Quote:// recommended torrents
$news = SQL_Query_exec("SELECT id, name, added, image1, image2 FROM torrents WHERE banned ='no' AND visible='yes' AND torrents.recommended='yes' ORDER BY torrents.id DESC LIMIT 7"); ///limit number of images
if (mysql_num_rows($news) > 0) {
print("<marquee scrollAmount=0 onmouseover=this.scrollAmount=0 onmouseout=this.scrollAmount=0 scrolldelay=0 direction=MARQUEE BEHAVIOR=ALTERNATE><table align=center cellpadding=2 cellspacing=2 width=100% border=0><tr>");
while ($row2 = mysql_fetch_array($news, MYSQL_NUM)) {
$tor = $row2['0'];
$altname = $row2['1'];
$where = "WHERE banned = 'no' AND visible='yes' AND torrents.id='$tor'";
$res = SQL_Query_exec("SELECT torrents.id, torrents.image1, torrents.image2, torrents.added, torrents.seeders, torrents.leechers, torrents.filename, torrents.name, times_completed, categories.name AS cat_name FROM torrents LEFT JOIN categories ON torrents.category = categories.id $where $orderby $limit");
$row = mysql_fetch_array($res);
$cat = $row['cat_name'];
$shortname = $row['filename'];
$img1 = "<small><b><a href='{$site_config[sITEURL]}/torrents-details.php?id=$row[id]'><img class ='corner iradius20 ishadow33' border='0' src='uploads/images/{$row[image1]}' alt="$name / $cat" title=$shortname height=210 width=150></a><br><br><center><img src=images/check.gif height='11' width='11' title='Completed' border=0><align=center><font color=darkgreen>".$row['times_completed']."</font>
<img src=images/arrow_up.gif height='11' width='11' title='Seeders' border=0><align=center> <font color=green>".$row['seeders']."</font>
<img src=images/arrow_down.gif height='11' width='11' title='Leechers' border=0><text-align=center><font color=red>".$row['leechers']."</font>";
if ($row["image1"] != ""){
print("<td align=center>". $img1 ."</td>");
}
}
print("</tr></table></marquee>");
}
end_frame();
No users online
Torrents
Members
Online