
September 10th, 2000, 06:00 AM
|
|
Contributing User
|
|
Join Date: Aug 2000
Location: Kuwait
Posts: 47
Time spent in forums: < 1 sec
Reputation Power: 9
|
|
|
I used to write CGI program that insert data into files. What I used to do was open the file, lock it, write to it, and then unlock it. If another user tries to insert something into the file while it's locked then tough luck. That's why I wrote a loop that would try writing to file a few times before quiting.
With MySql, I am inserting and updating data to the same database, but I have no idea how to resolve multiple users conflict. Is that done automatically?
What happens if two or more users try to insert into the database at the same time? What happens if they try to update a record at the same time?
Thank you.
|