An Little Help

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    An Little Help

    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&amp;sid=$sid\">$mate1</a>[/b]
    ";
      }else if($nopl[0]==&#39;F&#39;){
      echo "[b]married whit <a href=\"profil.php?who=$mate&amp;sid=$sid\">$mate1</a>[/b]
    ";
      }
      }
      
    $couples = mysql_fetch_array(mysql_query("SELECT accept, who, partner FROM couple WHERE partner=&#39;".$who."&#39;"));
    if($couples[0]==&#39;1&#39;)
      {
      $mate = $couples[1];
      $mate1 = getnick_uid($mate);
      if($nopl[0]==&#39;M&#39;)
      {
      echo "[b]married whit <a href=\"profil.php?who=$mate&amp;sid=$sid\">$mate1</a>[/b]
    ";
      }else if($nopl[0]==&#39;F&#39;){
      echo "[b]married whit <a href=\"profil.php?who=$mate&amp;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

    #2
    this should do it .......... iv removed the useless parts aswell that didnt do anything
    Code:
    echo "Marrital Status: ";
      $couple = mysql_fetch_array(mysql_query("SELECT accept, who, partner FROM couple WHERE who=&#39;".$who."&#39;"));
      if($couple[0]==&#39;1&#39;)
      {
      $mate = $couple[2];
      $mate1 = getnick_uid($mate);
      echo "[b]married whit <a href=\"profil.php?who=$mate&amp;sid=$sid\">$mate1</a>[/b]
    ";
      }
      
    
    else if($couple[0]==&#39;1&#39;)
      {
      $mate = $couple[1];
      $mate1 = getnick_uid($mate);
    
      echo "[b]married whit <a href=\"profil.php?who=$mate&amp;sid=$sid\">$mate1</a>[/b]
    ";
    
      }else{
    echo "[b]Help Im Lonely Please Marry Me![/b]
    ";
    }

    Comment


      #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 :D
      Hate romains that take codes from here and tell to all that they had made that

      Comment


        #4
        appp thx :P respect bro
        Hate romains that take codes from here and tell to all that they had made that

        Comment


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

          Comment


            #6
            it&#39;s working but not 100% :D
            it&#39;s s showing the marital status only at who send the proposal
            Code:
            else if($couple[0]==&#39;1&#39;)
              {
              $mate = $couple[1];
              $mate1 = getnick_uid($mate);
            
              echo "[b]married whit <a href=\"profil.php?who=$mate&amp;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

            Comment


              #7
              oh yeah sorry that was my fault lol heres the fix with sex included:
              Code:
              echo "Marrital Status: ";
                $couple = mysql_fetch_array(mysql_query("SELECT accept, who, partner FROM couple WHERE who=&#39;".$who."&#39;"));
              $couples = mysql_fetch_array(mysql_query("SELECT accept, who, partner FROM couple WHERE partner=&#39;".$who."&#39;"));
                if($couple[0]==&#39;1&#39;)
                {
                $mate = $couple[2];
                $mate1 = getnick_uid($mate);
                
                if($nopl[0]==&#39;M&#39;)
                {
                echo "[b]married whit <a href=\"profil.php?who=$mate&amp;sid=$sid\">$mate1</a>[/b]
              ";
                }else if($nopl[0]==&#39;F&#39;){
                echo "[b]married whit <a href=\"profil.php?who=$mate&amp;sid=$sid\">$mate1</a>[/b]
              ";
                }
                }
                
              else if($couples[0]==&#39;1&#39;)
                {
                $mate = $couples[1];
                $mate1 = getnick_uid($mate);
                if($nopl[0]==&#39;M&#39;)
                {
                echo "[b]married whit <a href=\"profil.php?who=$mate&amp;sid=$sid\">$mate1</a>[/b]
              ";
                }else if($nopl[0]==&#39;F&#39;){
                echo "[b]married whit <a href=\"profil.php?who=$mate&amp;sid=$sid\">$mate1</a>[/b]
              ";
                }
                }else{
              echo "[b]Help Im Lonely Please Marry Me![/b]
              ";
              }

              Comment


                #8
                thx a lot :D ...respect ...
                Hate romains that take codes from here and tell to all that they had made that

                Comment

                Working...
                X