Файл: mylaf.ru/zags/info.php
Строк: 24
<?
$zinat = mysql_query ("SELECT * FROM zags WHERE na_kom='$ank[id]'");
$row = mysql_fetch_array($zinat);
$zinat1 = mysql_query ("SELECT * FROM zags WHERE id_know='$ank[id]'");
$row1 = mysql_fetch_array($zinat1);
$zinat12 = mysql_query ("SELECT * FROM zags WHERE id_user='$ank[id]'");
$row12 = mysql_fetch_array($zinat12);
$zam=get_user($row1['id_user']);
$zam1=get_user($row12['id_know']);
$zam2=get_user($row['id_user']);
if (isset($user) && $ank['id'] == $row1['id_know'] && $row1['zinat'] == 'da')
{
echo "<a href='/id$zam[id]'><div class='$div'>";
echo"<img src='zags/img/love.png' alt='' />";
echo ($ank['pol'] == 1? 'Женат на ' : 'Замужем за ');
echo " $zam[nick]</div></a>";
}
if (isset($user) && $ank['id'] == $row12['id_user'] && $row12['zinat'] == 'da')
{
echo "<a href='/id$zam1[id]'><div class='$div'>";
echo"<img src='zags/img/love.png' alt='' />";
echo ($ank['pol'] == 1? 'Женат на ' : 'Замужем за ');
echo " $zam1[nick]</div></a>";
}
?>