Code:
echo "Marrital Status: ";
$couple = mysql_fetch_array(mysql_query("SELECT accept, who, partner FROM couple WHERE who='".$who."'"));
if($couple[0]=='1')
{
$mate = $couple[2];
$mate1 = getnick_uid($mate);
if($nopl[0]=='M')
{
echo "[b]married whit <a href=\"profil.php?who=$mate&sid=$sid\">$mate1</a>[/b]
";
}else if($nopl[0]=='F'){
echo "[b]married whit <a href=\"profil.php?who=$mate&sid=$sid\">$mate1</a>[/b]
";
}
}
$couples = mysql_fetch_array(mysql_query("SELECT accept, who, partner FROM couple WHERE partner='".$who."'"));
if($couples[0]=='1')
{
$mate = $couples[1];
$mate1 = getnick_uid($mate);
if($nopl[0]=='M')
{
echo "[b]married whit <a href=\"profil.php?who=$mate&sid=$sid\">$mate1</a>[/b]
";
}else if($nopl[0]=='F'){
echo "[b]married whit <a href=\"profil.php?who=$mate&sid=$sid\">$mate1</a>[/b]
";
}
}
i need to finish this part .... i need 2 put that one person dont have a partner to apear that he /she is lonley


Comment