Файл: rekl/vivod2.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` = 1 and `open` = 1 ORDER BY RAND() LIMIT 3');
if(mysql_num_rows($sql)>0){
while($a=mysql_fetch_assoc($sql)){
echo'<div class="poloska"><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 /></div>';
}
}
?>