Re: Storing IP into DB

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> > 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...


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


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux