<?php
$rek = $mysqli->query("SELECT `id`,`name`,`link`,`color` FROM `".$prefix."rekl` WHERE `stat` = '3' ORDER BY RAND() LIMIT 3");
if($rek->num_rows > 0)
{
echo '<div class="l1">';
echo '<b>- Рекомендуем </b><br/>';
while($row = $rek->fetch_assoc())
{
echo '<small>»</small> <a href="http://'.$row['link'].'"><small><font color=#'.$row['color'].'>'.$row['name'].'</font></small></a></br>';
}
echo '</div>';
}
?>