DefL,
[code]<?
echo "<div class='st_2'>";
if (isset($user) && $user['id']!=$ank['id'] && $user['balls']>=50 && mysql_result(mysql_query("SELECT SUM(`rating`) FROM `user_voice2` WHERE `id_kont` != '".mysql_real_escape_string($user[id])."'"
,0)>=0)
{
$my_r=intval(Удалён `rating` FROM `user_voice2` WHERE `id_user` = '".mysql_real_escape_string($user[id])."' AND `id_kont` = '".mysql_real_escape_string($ank[id])."'"
,0));
echo "n";
if ($my_r>'0'){
if ($my_r==1)
echo "";
if ($my_r==2)
echo "";
if ($my_r==3)
echo "";
if ($my_r==4)
echo "";
if ($my_r==5)
echo "";
}else{
echo "<div style=''><a href='/info.php?id=$ank[id]&rating=1' title='+1'><img src='style/images/rating/1.png'></a>n";
echo "|n";
echo "<a href='/info.php?id=$ank[id]&rating=2' title='+2'><img src='style/images/rating/2.png'></a>n";
echo "|n";
echo "<a href='/info.php?id=$ank[id]&rating=3' title='+3'><img src='style/images/rating/3.png'></a>n";
echo "|n";
echo "<a href='/info.php?id=$ank[id]&rating=4' title='+4'><img src='style/images/rating/4.png'></a>n";
echo "|n";
echo "<a href='/info.php?id=$ank[id]&rating=5' title='+5'><img src='style/images/rating/5.png'></a>n";
#echo "</div>";
}
}
echo "</div>";
?>[/code]