RE: Duplicate record

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

 



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@xxxxxxxxxx] 
Sent: 30. juli 2005 12:17
To: php-db@xxxxxxxxxxxxx
Subject:  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


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

  Powered by Linux