Ip select

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

9 replies · 522 views · started 17 years ago · 1 min read

6 participants
Ponick Developer · 216 posts #1

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 ?

/* I don't know everything hehe */

Find me on facebook

Anshul Senior · 296 posts #2

Select userip from usertable where userid=chat_msg_poster_id;

Ponick Developer · 216 posts #4

Ponick wrote: I tryed it . . .But n0t working . .

im tryin this to chatroom

 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?;(

/* I don't know everything hehe */

Find me on facebook

CreativityKills Lead · 833 posts #5

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

Ponick Developer · 216 posts #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.

/* I don't know everything hehe */

Find me on facebook

something else Fellow · 2,296 posts #7

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

arg0s12 Developer · 144 posts #8

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

Mysterio Lead · 630 posts #9

say "thanks" to something else. That code should work.

mysterio.al - programming is a functional art

Ponick Developer · 216 posts #10

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

// i will post it (copy-past) 4m my pc letter argos

/* I don't know everything hehe */

Find me on facebook

Write your reply now; next you create a free account (or sign in) and it is posted right away. 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