Файл: KOSMOS/inc/head_obyv.php
Строк: 12
<?
$x=mysql_query("SELECT * FROM `obyv` ORDER BY `id` DESC LIMIT 1");
while($row=mysql_fetch_assoc($x)){
if($ku['read_obyv']==0)
{
if(isset($_GET['read_obyv']))
{
mysql_query("UPDATE `kolhoz_user` SET `read_obyv` = '1' WHERE `id` = '$ku[id]'");
}
echo '<div class="feedback"><div>'.($row['name']!=NULL?'<font color="red"><b>'.$row['name'].'...</b></font><br/>':null).'';
echo ''.$row['opis'].'<br/>';
echo "Админ: ";
echo '<b>'.on_k($row['id_user']).' <a href="?user='.$row['id_user'].'">'.nc($row['id_user']).'</a></b><br/>';
echo "<img width='16' height='16' src='images/icons/delete.png' alt='o'> <a href='?read_obyv'>Скрыть</a><br><img width='16' height='16' src='images/icons/tick.png' alt='o'> <a href='?obyv'>Все объявления</a></div></div>";
}
}
?>