Call to funtion

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Call to funtion

    I seem to have a problem....... Im calling a user from the database but it dosnt display that users nick only its ID how do I fix this....... I wana see the nick not the ID

    Heres my snippet im useing

    PHP Code:

    $unick 
    getnick_uid($rela[2]);
      
    $lnk "<a href=\"index.php?action=viewuser&amp;who=$rela[2]&amp;sid=$sid\">$unick</a>";
      echo 
    "Relation: <b>Married to $lnk</b> <br/>"
    This part here shows the ID how do I get it to show the nick instead.......
    PHP Code:
    sid=$sid\">$rela[2]</a>"
    Last edited by bOrN2pwn; 04.02.10, 15:22.
    BakGat
    Code:
    class Counter {
    public:
      void Count();
      int  ReadDisplay();
    private:
      int  CurrentCount;
    };








    Back up my hard drive? How do I put it in reverse?
    My Community
    BakGat
    sigpic

    #2
    murshid this is ur last warning for posting crap ull be baned next time u are warned u not staff to say topic closed we will say so
    Last edited by riderz; 04.02.10, 15:37.
    ________________
    Jacques
    jacques@gw-designs.co.za
    http://coding.biz.tm
    Come join and lets make it a place to learn all the noobies how to code
    __________________

    NEVER FORGET TO CLICK THE TANX BUTTON IF U LIKE WHAT IM SHARING OR HELPING WITH

    Comment


      #3
      Its not the same code you moron.......
      BakGat
      Code:
      class Counter {
      public:
        void Count();
        int  ReadDisplay();
      private:
        int  CurrentCount;
      };








      Back up my hard drive? How do I put it in reverse?
      My Community
      BakGat
      sigpic

      Comment


        #4
        try to look at this code m8
        Code:
        $couple = mysql_fetch_array(mysql_query("SELECT accept, who, partner FROM couple WHERE who='".$who."'"));
          if($couple[0]=='1')
          {
        
        
          echo "<b>COUPLES:</b><br/>";
          $unick = getnick_uid($couple[2]);
        
        
        
          echo "<b>$whonick</b>is married with  $unick <br/>";
          }
        $couple = mysql_fetch_array(mysql_query("SELECT accept, who, partner FROM couple WHERE partner='".$who."'"));
        if($couple[0]=='1')
          {
        
        
          echo "<b>COUPLES:</b><br/>";
          $nick = getnick_uid($couple[1]);
        
        
        
          echo "<b>$whonick</b> is married with $nick <br/>";
          }
        mabe it will help u
        ________________
        Jacques
        jacques@gw-designs.co.za
        http://coding.biz.tm
        Come join and lets make it a place to learn all the noobies how to code
        __________________

        NEVER FORGET TO CLICK THE TANX BUTTON IF U LIKE WHAT IM SHARING OR HELPING WITH

        Comment


          #5
          Rider I went thru that there are a few unnecessary line in that code.... I will paste my finished chapel code here.....
          BakGat
          Code:
          class Counter {
          public:
            void Count();
            int  ReadDisplay();
          private:
            int  CurrentCount;
          };








          Back up my hard drive? How do I put it in reverse?
          My Community
          BakGat
          sigpic

          Comment


            #6
            Its was my stupid error lol cant use the same function twice sorry...... its fixed.....

            TOPIC CLOSED
            BakGat
            Code:
            class Counter {
            public:
              void Count();
              int  ReadDisplay();
            private:
              int  CurrentCount;
            };








            Back up my hard drive? How do I put it in reverse?
            My Community
            BakGat
            sigpic

            Comment

            Working...
            X