{% else-1 %}
Amstor * 30.37
(26 дек 2015, 00:38) (0/0) [0]
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]&amp;rating=1' title='+1'><img src='style/images/rating/1.png'></a>n";
echo "|n";
echo "<a href='/info.php?id=$ank[id]&amp;rating=2' title='+2'><img src='style/images/rating/2.png'></a>n";
echo "|n";
echo "<a href='/info.php?id=$ank[id]&amp;rating=3' title='+3'><img src='style/images/rating/3.png'></a>n";
echo "|n";
echo "<a href='/info.php?id=$ank[id]&amp;rating=4' title='+4'><img src='style/images/rating/4.png'></a>n";
echo "|n";
echo "<a href='/info.php?id=$ank[id]&amp;rating=5' title='+5'><img src='style/images/rating/5.png'></a>n";

#echo "</div>";
}
}
echo "</div>";
?>[/code]
Amstor * 30.37
(26 дек 2015, 00:36) (0/0) [0]
DefL, ты открываеш див перед условием а закрываеш его в условии*
  • 1 из 1