Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: Del siuntiniu headeryje

Parašė zDon· 2009 Kov. 28 18:03:01
#2

$result = dbquery("SELECT * FROM ".$db_prefix."articles ORDER BY article_reads DESC LIMIT 0,7");
if (dbrows($result) != 0) {
echo "<table width='225' cellpadding='0' cellspacing='0' align='center' class='music'><br>";
while($data = dbarray($result)) {
$itemsubject = trimlink($data['article_name'], 23);
echo "<tr><td class='small'><img src='".THEME."images/bullet.gif'> <a href='".BASEDIR."articles.php?cat_id=".$data['article_cat']."&article_id=".$data['article_id']."' title='".$data['article_name']."' class='music'>$itemsubject</a></td></tr>";
}
echo "</table>";
} else {
echo "<center>".$locale['004']."</center>";
}
$result2 = dbquery("SELECT * FROM ".$db_prefix."articles ORDER BY article_datestamp DESC LIMIT 0,7");
if (dbrows($result2) != 0) {
echo "<table width='225' cellpadding='0' cellspacing='0' align='center' valign='bottom' class='music'><br><br>";
while ($data = dbarray($result2)) {
echo "<tr>
<td class='small'>
<img src='".THEME."images/bullet.gif'>
 <a href='".BASEDIR."articles.php?cat_id=".$data['article_cat']."&article_id=".$data['article_id']."' title='".$data['article_name']."' class='music'>".trimlink($data['article_name'], 23)."</a>
</td>
</tr>";




Bandyk