@ryeman98Jun 02.2007 — #There probably is but I'm not sure how to do it.
There are two other things that you could do with the IP stuff though. If their IP address is already in the database you could check to see. Something like this:
<i> </i><?php $id = $_SERVER['REMOTE_ADDR']; $checkIP = mysql_query("SELECT ip FROM <span><code>ip</code></span>);
if ($checkIP == $_SERVER['REMOTE_ADDR'] {
} else { $query = mysql_query("INSERT INTO <span><code>ip</code></span> (<span><code>ip</code></span>) VALUES ('$ip')"); or die(mysql_error()); ?>
or if you have another field in the database which displays how many times the user has been on the page:
<i> </i><?php $id = $_SERVER['REMOTE_ADDR']; $checkIP = mysql_query("SELECT ip FROM <span><code>ip</code></span>); or die(mysql_error());
if ($checkIP == $_SERVER['REMOTE_ADDR'] { mysql_query("UPDATE SET <span><code>number</code></span> = 'i++'"); or die(mysql_error()); } else { $query = mysql_query("INSERT INTO <span><code>ip</code></span> (<span><code>ip</code></span>) VALUES ('$ip')"); or die(mysql_error()); ?>
I'm not actually positive on the second option there but you could easily go to w3schools or tizag and figure out the update part. ?
@ryeman98Jun 03.2007 — #I tried my code and it didn't work. I can't seem to get the UPDATE to work for any of my databases so if you're going to use my code, you're going to have to alter it.
They seem to know when your using a proxy... I think they said something about using java... Maybe thats just because I'm using a proxy that isn't hiding my i.p.
On a side note, I got an I.p. detector saying my external i.p. is one thing... and I got another one saying another.. this is weird.