Файл: rekl/vivod.php
Строк: 16
<?php
include 'connect.php';
$t = time();
$sql=mysql_query('SELECT `url`,`name`,`color`,`bold`,`italic`,`type`,`open` FROM `rekl` WHERE `time` > '.$t.' and `type` = 0 and `open` = 1 ORDER BY RAND() LIMIT 5');
if(mysql_num_rows($sql)>0){
echo '<div class="poloska">';
while($a=mysql_fetch_assoc($sql)){
echo'<img src="/images/Design/ind.png" alt="*" > <a '.(($a['color'] || $a['bold'] || $a['italic']) ? 'style="'.($a['bold']?'font-weight:bold;':'').($a['italic']?'font-style:italic;':'').($a['color']?'color:'.$a['color']:'').'" ' : '' ).'href="'.$a['url'].'">
'.$a['name'].'</a><br />
';
}
}
?>