RE: Can a script run twice?

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

 



> 
> Apparently the problem isn't solvable by using tokens, sessions, 
> locking, and such. So why not just check the dB to see if the current 
> record has already been entered? If so, don't do it again.
> 
> Isn't this a solution? Or is there something here that I'm 
> not understanding?

...or maybe do a 'REPLACE...' rather than an 'INSERT...'?  That way the
record is not entered into the database twice if it already exists.  Might
be a more economical way than doing a "lookup/compare/write if" sequence.

JM

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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux