if ($CURUSER) { //Letzen 10 torrents mit bild if ($CURUSER[xxx]=='yes'){ $sql = "SELECT * FROM torrents where visible='yes' AND numpics >=1 ORDER BY added DESC LIMIT 9"; } else { $sql = "SELECT * FROM torrents where visible='yes' AND numpics >=1 AND category != '32' ORDER BY added DESC LIMIT 9"; } $result = mysql_query($sql) or die('No torrents found'); if( mysql_num_rows($result) != 0 ) { print "

Die neuesten Torrents mit Bild

"; print '
'; while( $row = mysql_fetch_assoc($result) ) { print''; } print '
'; print''; print'
'; } else { print 'Keine Torrents gefunden'; } } //Letzen 10 torrents mit bild end