Re: Limiting the insert operation
| From: | David Tod Sigafoos | Date: | Fri, 29 Sep 2000 14:36:16 +0000 |
| Subject: | Re: Limiting the insert operation | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-18051@lists.php.net to get a copy of this message | ||
Hello manohar,
If it is possible that the user is 'updating' not just inserting
(creating a new) then I would suggest a 'dtap' stamp
(date/time/application). This would allow the user to create a new,
modify existing. You would do a select on the date/time and see if it
is within xminutes/seconds then don't allow
DSig
David Tod Sigafoos
Friday, September 29, 2000, 4:01:27 PM, you wrote:
ms> Hi all,
ms> I am executing an insert operation into Mysql thro' a form. How can i
ms> control the operation such that the insert is executed only once?(If the
ms> user clicks the submit many times, multiple inserts should not occur).
ms> Please help.
ms> cheers,
ms> mano
ms> _________________________________________________________________________
ms> Get Your Private, Free E-mail from MSN Hotmail at
ms> http://www.hotmail.com.
ms> Share information about yourself, create your own public profile at
ms> http://profiles.msn.com.
--
Best regards,
David mailto:dsig@teleport.com