Handling Multi Users
Requirements: I have an applications (mysql php jquery) where the users can:
- Review records and update certain fields.
- Issue invoices by selecting orders.
Issues: The issue is that an invoice should not be issued twice for the same time period. Also, a field should not be updated by two or more users at the same time.
Possible Solutions:
- Lock the tables when they get updated, and if the user performs an action, notify and reload.
- Impliment lock system, that when a user performs certain actions, it locks those actions to be performed by other users.
- ...