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