> Make your 'ip' column UNIQUE in your table and ignore errors.
> Or, set a flag in a session or cookie when you save the IP and if that flag
> is present on other pages, then don't save the IP.

Or I believe you can use REPLACE INTO...


PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to