Re: Storing IP into DB
| From: | Chris Boget | Date: | Thu, 30 Jan 2003 20:22:35 +0000 |
| Subject: | Re: Storing IP into DB | ||
| References: | 1 2 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-25264@lists.php.net to get a copy of this message | ||
> 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...
Chris