sarasoorah Posted May 26, 2007 Share Posted May 26, 2007 Hello everyone, I am developing a small system in php, it is a Document Tracking system, this system will have multiple users each with different privileges, but all users have the privilege of searching and viewing the documents, and some users have the privilege of modifying the documents. what I want to do is to allow only one user to modify the documents at a time. and when a user is viewing some pages, I want to block other users from modifying anything in the database. can I add php functions that could do this to block writing to the database during the execution of a page? please help :'( :'( :'( Quote Link to comment https://forums.phpfreaks.com/topic/53100-solved-mysql-access-need-urgent-help/ Share on other sites More sharing options...
bubblegum.anarchy Posted May 27, 2007 Share Posted May 27, 2007 Lock the table: http://dev.mysql.com/doc/refman/4.1/en/lock-tables.html Quote Link to comment https://forums.phpfreaks.com/topic/53100-solved-mysql-access-need-urgent-help/#findComment-262341 Share on other sites More sharing options...
sarasoorah Posted May 29, 2007 Author Share Posted May 29, 2007 Thank you very much. Quote Link to comment https://forums.phpfreaks.com/topic/53100-solved-mysql-access-need-urgent-help/#findComment-263710 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.