Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: Siandien ikelti siuntiniai

Parašė Gizmis· 2008 Bal. 10 22:04:50
#3

Sitam kode? Kaip idet ta limita ?
openside("Naujausi mp3");
$result = dbquery(
"SELECT td.*,tdc.* FROM ".$db_prefix."downloads td
INNER JOIN ".$db_prefix."download_cats tdc ON td.download_cat=tdc.download_cat_id
WHERE ".groupaccess('download_cat_access')." ORDER BY download_datestamp DESC LIMIT 0,50"
);
if (dbrows($result) != 0) {
while($data = dbarray($result)) {
$itemsubject = trimlink($data['download_title'], 100);
  if (iMEMBER) {
echo "<tr>\n<td class='small'><img src='".THEME."images/bullet.gif'> <a href='".BASEDIR."downloads.php?cat_id=".$data['download_cat']."&download_id=".$data['download_id']."' title='".$data['download_title']."' class='side' target='_blank'>$itemsubject</a>\n";
} else {
echo "<tr>\n<td class='small'><img src='".THEME."images/bullet.gif'> <a href='".BASEDIR."nariams.php' title='".$data['download_title']."' class='side' target='_blank'>$itemsubject</a>\n";
}
}
} else {
echo "<center>".$locale['004']."</center>\n";
}


closeside();