Ip select

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

    Ip select

    I know how to select user ip in their private profile . But my question is that how to select ip or show it in bihind of user nick in chat r00m ?
    Please can any0ne help me ?
    PHP Code:
    /* I don't know everything hehe */ 
    Find me on facebook

    #2
    Select userip from usertable where userid=chat_msg_poster_id;

    Comment


      #3
      I tryed it . . .But n0t working . .
      PHP Code:
      /* I don't know everything hehe */ 
      Find me on facebook

      Comment


        #4
        Originally posted by Ponick View Post
        I tryed it . . .But n0t working . .


        im tryin this to chatroom



        PHP Code:
         echo "$ds $optlink";
                          
          
        $avlink getavatar($chat[0]);
        if (
        $avlink!=""){

        echo 
        "<img src=\"$avlink\" alt=\"\"/>:";

        }else{

        $uipadd mysql_fetch_array(mysql_query("SELECT ipadd FROM ibwf_users WHERE id='".$who."'"));
        $IPaddress=$uipadd[0];






        echo
        "<img src=\"flags/$two_letter_country_code.gif\" alt=\"$two_letter_country_code\" />:";
        }
                          

                          echo
        " <b>$tosay</b><br/>";
                          }
                        }
                                      
                          
        $counter++;
                        }

                        }
                    }
                   
                    echo 
        "</p>"

        but it show same flag in averywhere!

        i think mysql is the main problem mysql_fetch_array(mysql_query("SELECT ipadd FROM ibwf_users WHERE id='".$who."'"));


        can any one help?
        PHP Code:
        /* I don't know everything hehe */ 
        Find me on facebook

        Comment


          #5
          I dnt knw wats d issue bt this is gud coding practice: "".$two_letter_country_code."gif"; NOT $two_letter_country_code.gif

          Comment


            #6
            kewmew get a look in my site. Then you will know the issu

            its succesfully work in profile but in chat room its show your flag in avery where. Please get a l0ok.
            PHP Code:
            /* I don't know everything hehe */ 
            Find me on facebook

            Comment


              #7
              $uipadd = mysql_fetch_array(mysql_query("SELECT ipadd FROM ibwf_users WHERE id='".$chat[0]"'"));

              Comment


                #8
                Sir what's the table row for ibwf_user ipadd? Will you pls. Post?

                Comment


                  #9
                  say "thanks" to something else. That code should work.
                  mysterio.al - programming is a functional art

                  Comment


                    #10
                    Thanx not working from m0bile .I must give thanx letter from pc

                    // i will post it (copy-past) 4m my pc letter argos
                    PHP Code:
                    /* I don't know everything hehe */ 
                    Find me on facebook

                    Comment

                    Working...
                    X