
April 26th, 2000, 07:03 AM
|
|
Apprentice Deity
|
|
Join Date: Jul 1999
Location: Niagara Falls (On the wrong side of the gorge)
Posts: 3,237

Time spent in forums: 4 m 8 sec
Reputation Power: 17
|
|
|
You'd only be in trouble insofar as that one insert. The next user would still be correct. You can set up a cron job to compare the two tables periodically, or have the second table be the one with just the login id. Set ALL info including the login info into the first table. If someone signs in and isn't in the second table you could verify against the first to double check. If they are there, update the 2nd table then.
BTW, the user hitting the stop button is not going to affect the PHP script in most circumstances, especially if you are not outputting to the browser between the two queries, the script will continue to run.
There is also a setting I can't recall now, check the manual, that tells PHP to execute the script to completion no matter what the user does.
As far as errors, thorough testing should catch all possible bugs in your code that might cause a problem with the second insert.
Still, a once an hour cron job should catch any problems and be more than sufficient. If you really want to see if you had a concern or not, you can have the cron job log any repairs it performs.
|