Parašė Apocal· 2009 Spa. 29 14:10:38
#6
Kaip padaryti kad rodytu salia kokioje kategorijoje failas randasi
PVZ.:
Counter-Strike 1.6 Full [Žaidimai]
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();