Parašė kLx· 2009 Bir. 22 14:06:01
#4
<td background='".THEME."grafika/virsus/virsus_08.png' width='221' height='113' alt=''>";
$result = dbquery("SELECT * FROM "tavoduombazės prefix_downloads ORDER BY download_datestamp DESC LIMIT 7";
if (dbrows($result) != 0) {
echo "<table width='180' align='center' cellpadding='0' cellspacing='0'>";
while ($data = dbarray($result)) {
echo "<tr>
<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'>".trimlink($data['download_title'], 40)."</a>
</td>
<td align='right'>[".$data['download_count']."]</td>
</tr>";
}
echo "</table>";
} else {
echo "".$locale['004']."";
}
echo "</td>
arba prie temos global'o pridėk ,
$db_prefix