objnoob Posted October 5, 2011 Share Posted October 5, 2011 I need some advice on how to implement, if possible, the following scenario: I would like start a MySQL transaction to process database changes through Ajax requests and commit the changes on request of the user. The web application needs to allow multiple users, but can be limited. If persistent connections must be used, any persistent connections must be terminated after a length of time, or on session time to avoid hogging the limited number of persistent users available. Is there any good way of doing this? And were should I begin my research. Much thanks! Quote Link to comment https://forums.phpfreaks.com/topic/248507-mysql-transaction-across-multiple-php-script-executions/ Share on other sites More sharing options...
postonoh Posted October 5, 2011 Share Posted October 5, 2011 Here are two location that may help you. http://www.w3schools.com/php/php_ajax_database.asp http://www.w3schools.com/ajax/ajax_database.asp let me know if this helps. If not give me a design layout for your form. Quote Link to comment https://forums.phpfreaks.com/topic/248507-mysql-transaction-across-multiple-php-script-executions/#findComment-1276213 Share on other sites More sharing options...
objnoob Posted October 5, 2011 Author Share Posted October 5, 2011 I'm well aware of how to create Ajax requests using the XMLHttpRequest object, however I do appreciate your response. The goal is to combine the power of Transactional Database data manipulation through intermittent Ajax Requests handled by multiple PHP script executions. It may be more a hassle than it's worth. Quote Link to comment https://forums.phpfreaks.com/topic/248507-mysql-transaction-across-multiple-php-script-executions/#findComment-1276291 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.