Jump to content

[SOLVED] oho hit counter unique using mysql


marksie1988

Recommended Posts

hey guys i have been searching the net with no joy. basically i want a hit counter that logs unique hits by ip address and logs it in a mysql table but only once

 

then when the data is logged it displays the number of people who have visited

 

i would prefer not to use cookies if possible e.g. the php could check against the table to see if that ip is there if so then dont log it??

ok i am creating a script myself and i dont know how to say

 

if (ip address == ip address in table){

    exit

}

 

here is what i have

$mp_ip = $_SERVER[REMOTE_ADDR];

if ($mp_ip == ['ip']) {
    exit
}

 

i know that something needs to go before the $mp_ip but i dont know what and i cant figure it out. as its not one ive done before

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.