An Little Help

Started on the old forum in October 2008 · view the original in the archive · old links redirect here

7 replies · 382 views · started 18 years ago · 1 min read

2 participants
ionutxp Developer · 137 posts #1
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

Hate romains that take codes from here and tell to all that they had made that External image (may be gone)

something else Fellow · 2,296 posts #2

this should do it .......... iv removed the useless parts aswell that didnt do anything 🙂

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);
  echo "[b]married whit <a href=\"profil.php?who=$mate&sid=$sid\">$mate1</a>[/b]
";
  }
  

else if($couple[0]=='1')
  {
  $mate = $couple[1];
  $mate1 = getnick_uid($mate);

  echo "[b]married whit <a href=\"profil.php?who=$mate&sid=$sid\">$mate1</a>[/b]
";

  }else{
echo "[b]Help Im Lonely Please Marry Me![/b]
";
}
ionutxp Developer · 137 posts #3

not useless because i will translate it to romanian.... for exampe :

in romanian : if im boy : Sunt casatorit (im married) - || - girl : Sunt casatorita (im married)

the words are diferite 4 diferite gender 😀

Hate romains that take codes from here and tell to all that they had made that External image (may be gone)

something else Fellow · 2,296 posts #5

oh yeah letter a on end of words makes it female in lots of languages 🙂

ionutxp Developer · 137 posts #6

it's working but not 100% 😀 it's s showing the marital status only at who send the proposal

else if($couple[0]=='1')
  {
  $mate = $couple[1];
  $mate1 = getnick_uid($mate);

  echo "[b]married whit <a href=\"profil.php?who=$mate&sid=$sid\">$mate1</a>[/b]
";

  }else{
echo "[b]Help Im Lonely Please Marry Me![/b]
";
}

but who accept the recived poposal at his/her profile shows that he/she is lonley ...hmm

Hate romains that take codes from here and tell to all that they had made that External image (may be gone)

something else Fellow · 2,296 posts #7

oh yeah sorry that was my fault lol heres the fix with sex included:

echo "Marrital Status: ";
  $couple = mysql_fetch_array(mysql_query("SELECT accept, who, partner FROM couple WHERE who='".$who."'"));
$couples = mysql_fetch_array(mysql_query("SELECT accept, who, partner FROM couple WHERE partner='".$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]
";
  }
  }
  
else 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]
";
  }
  }else{
echo "[b]Help Im Lonely Please Marry Me![/b]
";
}

Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close