Увеличение значения один раз для каждого IP [закрыто] ⇐ Php
-
Anonymous
Увеличение значения один раз для каждого IP [закрыто]
I'm creating a visit counter in PHP that checks the country and adds it to the database. Is there a way to increment counter only once per ip?
I have the table:
| id | country | visits | | -- | -------------- | ------ | | 1 | United States | 5 | | 2 | France | 2 | | 3 | Poland | 6 | Eg. someone with ip 192.168.7.105 connets to the server it increments visit value, but when he reconnects (even with new session) it won't increment because he connected before.
Источник: https://stackoverflow.com/questions/780 ... nce-per-ip
I'm creating a visit counter in PHP that checks the country and adds it to the database. Is there a way to increment counter only once per ip?
I have the table:
| id | country | visits | | -- | -------------- | ------ | | 1 | United States | 5 | | 2 | France | 2 | | 3 | Poland | 6 | Eg. someone with ip 192.168.7.105 connets to the server it increments visit value, but when he reconnects (even with new session) it won't increment because he connected before.
Источник: https://stackoverflow.com/questions/780 ... nce-per-ip