<?
$rek = $mysqli->query("SELECT `id`,`name`,`link`,`color` FROM `".$prefix."rekl` WHERE `stat` = '1' ORDER BY RAND() LIMIT 3");
if($rek->num_rows > 0)
{
echo '<div class="poloska">';
while($row = $rek->fetch_assoc())
{
echo '<img src="http://'.$_SERVER['HTTP_HOST'].'/Design/images/ini/d.png" alt="*" > <a href="http://'.$row['link'].'"><font color=#'.$row['color'].'><small>'.$row['name'].'</small></font></a></br>';
}
echo '</div>';
}
?>