RE: [PHP-DB] Duplicate record
| From: | Martin B. Nielsen | Date: | Sat, 30 Jul 2005 11:22:35 +0000 |
| Subject: | RE: [PHP-DB] Duplicate record | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-39996@lists.php.net to get a copy of this message | ||
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:hallvard@natvik.com]
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