Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: Reikia Pagalbos

Parašė Pakartoti slaptažodį· 2010 Vas. 16 19:02:23
#2

1.

<?php
$result = dbquery("SELECT * FROM ".$db_prefix."downloads ORDER BY download_datestamp DESC LIMIT 0,100");
echo "<table width='100%' cellpadding='0' cellspacing='0'>";
while ($data = dbarray($result)) {
echo "<tr>
<td class='small'>
<img src='".THEME."images/bullet.gif' alt=''>
<a href='downloads.php?d_id=".$data['download_id']."' title='".$data['download_title']."' class='side'>".$data['download_title']."</a>
</td>
<td align='right'><b>".$data['download_count']."</b></td>
</tr>";
}
echo "</table>";
?>




3.
opentable("Reklama");
$ads = array("KODAS1",KODAS2","KODAS3");
$cc = count($ads);
$cl = $cc-1;
$rand = rand(0,$cl);
echo"<center>$ads[$rand]</center>";
closetable();



Redagavo Pakartoti slaptažodį· 2010 Vas. 16 19:02:42