How can i check if other people had the same ip ?
#1

Ok ,look.

In the tabel "Accounts" i have a field who get the ip of the player when he log in.



- How can i check to detect if exist an ip in the database? i want to do something like:


(127.0.0.1) Name_Player is registered.
Other accounts who have the same ip : Name_PLayer2
Reply
#2

like aka/whosid ?
Reply
#3

Get Name_Player's IP with GetPlayerIp, then send a query like SELECT * FROM Accounts WHERE IP = '<Name_Player's IP>'
Then check for the query's results. If they exist, get the names from the database and use them to build a string to be displayed later.
Reply
#4

.. can somebody build an example please? i'm beginner in mysql.

.... i think i can get , but i don't know how to list them i mean


- Name_Player (only one) yes i know
but how i do more ?

Name , Name2 , Name3
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)