View file api_core/ads_up.php

File size: 712B
<?php

////////////////////////////////////////
///// Kyber ApiCMS 2013 apicms.ru //////
///// Запрещается продажа данной CMS ///
///// Автор Евгений Медянкин Kyber /////
///// ICQ 626-000-895 или 37-22-47 /////
////////////////////////////////////////

echo '<div class="subhead">';
$rek_up = mysql_query("SELECT * FROM `advertising` WHERE `time` > '".time()."' AND `mesto` = '1' ORDER BY time DESC");
while ($ads_up = mysql_fetch_assoc($rek_up)){			
echo '<img src="/images/reks.png" alt=""> <a href="'.$ads_up['link'].'"><small>'.htmlspecialchars($ads_up['name']).'</small></a> </br>';
}
echo '</div>';
////////////////////////////////////////
?>