First of all, I'm sorry if this in the wrong section of the forum. I haven't got a clue what this should be categorized under.
I'm really new to databases and such, so please bear with me.
Okay, my problem is... I created a visitors page with a database to track the whole thing. Everything works fine, but for some reason unknown to me certain friends ip address changes here and there. I've got my visitors page set so when a friend comes, I can name their ip address so I know it's them each time they come back, but this doesn't work if they come back and their ip has changed slightly.
For instance:
if ($visitor == "84.169.227.212") {$visitor = "Pix or Rames";}
But sometimes they'll come and their ip address will have changed to something like 84.169.224.36
So I tried to fix this with:
if ($visParts[0] == "84" && $visParts[1] == "169") {$visitor = "Pix or Rames";}
but that didn't do a thing.
Anyone know how I can fix this?
My visitors page is here: http://cryptology.silver-blaze.net/visitors.php if that helps at all.
Thanks very much,
Kenna