<?
if ($k_post_mp3!=0)
{
echo "<img src='/search/img/mp3.png' /><a href='?go&mp3=ok'> Музыка $k_post_mp3</a>";
if (isset($_GET['mp3']) =='ok')
{
$k_page=k_page($k_post_mp3,$set['p_str']);
$page=page($k_page);
$start=$set['p_str']*$page-$set['p_str'];
if ($k_post_img==0)echo "<div class="err">nНет результатов</div>n";
$q=mysql_query("SELECT * FROM `obmennik_files` WHERE `opis` like '%".mysql_escape_string($q_search)."%' AND `type` like '%".mysql_escape_string(audio)."%' ORDER BY `id` DESC LIMIT $start, $set[p_str]");
$i=0;
while ($mp3 = mysql_fetch_assoc($q))
{
$dir=mysql_fetch_assoc(mysql_query("select * from `obmennik_dir` where `id`='".$mp3['id_dir']."';"));
echo " <div class='p_m'>n";
echo "<a href='/obmen$dir[dir]$mp3[name].$mp3[ras]?showinfo'> ^ $mp3[name].$mp3[ras]</a>";
echo " </div>n";
}
if ($k_page>1){str("?go&mp3=ok&",$k_page,$page);
print'<br/>';
}
}
}
else
{
}
?>