cliftonbazaar Posted March 11, 2013 Share Posted March 11, 2013 I have a game running which allows players to compete against each other. I have now found out that if both players are online at the same time then the server trys to run the same queries at the same time, with differant results that confuses everyone How do I 'Lock' a piece of data so it can only be opened once by the PHP code; but it also needs to be available in 'read only' for other players. Any suggestions would be helpful and a link to a tutorial would be even better James Quote Link to comment https://forums.phpfreaks.com/topic/275482-making-sure-2-people-dont-alter-the-same-data/ Share on other sites More sharing options...
fenway Posted March 16, 2013 Share Posted March 16, 2013 Describe this "piece of data". Quote Link to comment https://forums.phpfreaks.com/topic/275482-making-sure-2-people-dont-alter-the-same-data/#findComment-1419028 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.