PHP and mysql connection disconnected

I have a PHP MySQL query that deletes multiple rows from different tables. I would like to know if my browser will wait for the MySQL query to complete if I lose my internet connection, if the MySQL query will work on the server, or if it will stop as soon as I lose my connection.

+3


source to share


3 answers


The server will not be affected if the client loses the connection. The request will be canceled, but the client will not receive a result.



+3


source


If I remember correctly, when a connection to a website using PHP terminates while it is still processing, it terminates the script as soon as it is possible to do so, for example, while it might break between the two echo

, it will not split in the middle one function like MySQL functions.



+3


source


If you have done something on the server and as soon as the data is sent, it will finish executing and then reload your page, and if you lose your connection while the data is being sent, then there will be a problem because the data was half sent. the other way is that your data is being sent and during receive you lost the connection, so the mysql data or any other database is executed.

+1


source







All Articles