Would'nt the simplest just setting one of the rows as UNIQUE? Or you can add
one query that checks if one of the values already exists in the database.

Best regards,
Martin

-----Original Message-----
From: Hallvard [mailto:[EMAIL PROTECTED] 
Sent: 30. juli 2005 12:17
To: php-db@lists.php.net
Subject: [PHP-DB] Duplicate record

I have a page that posts data from a form to a mysql database.

The problem is that if the user hits the reload button on the browser, the 
data will be posted again, resulting in a duplicate record.

How can I avoid that? 

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

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

Reply via email to