Parašė Apocal· 2010 Sau. 30 13:01:21
#5
openside("Atsitiktiniai 10 siuntinių");
$result=dbquery("SELECT * FROM ".DB_PREFIX."downloads ORDER BY RAND() LIMIT 10");
if(dbrows($result)!=0){
while($data=dbarray($result)){
$result2 = dbquery("SELECT download_cat_name FROM ".DB_PREFIX."download_cats WHERE download_cat_id='$data[download_cat]'");
$category = dbresult($result2,0);
echo "<taašr><td class='small2'><a href='".BASEDIR."downloads.php?cat_id=$data[download_cats]&download_id=$data[download_id]' target='blank'
class='slink'>".trimlink($data[download_title], 25)."</a</td></tr></table>\n";
}
}
closeside();
Redagavo Apocal· 2010 Sau. 30 13:01:34