Re: Storing IP into DB
| From: | 1LT John W. Holmes | Date: | Thu, 30 Jan 2003 20:35:08 +0000 |
| Subject: | Re: Storing IP into DB | ||
| References: | 1 2 3 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-25266@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...
True. I don't think all databases implement REPLACE, though... so it depends
on your config.
---John Holmes...