The SitePoint Forums have moved.

You can now find them here.
This forum is now closed to new posts, but you can browse existing content.
You can find out more information about the move and how to open a new account (if necessary) here.
If you get stuck you can get support by emailing forums@sitepoint.com

If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Selecting from db, and showing only the same stuff on a row.

Ok, I know how to select from a database, and so I have this

Code:

$showing = mysql_fetch_array(mysql_query("select * from players order by IP"));

Ok, that pulls out the player's IP adresse, now how would I show if 2, or more, players IPs are the same, it ONLY shows them players that have the same ip - and if a player has a unique IP to the database, it doesnt show this.

I want it to show ALL the people with the same IP as another player, so not only 1 IP, but like there could be 2 people with the same IP, then another 2, then 3 people, and I want it to show only those people.. getme?