--- On Thu, 11/6/08, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:

> I have a simple question about what may happen
> when a web page that is accessing MySQL 
> is closed by the browser.
> 
> I have to script a database in simple MySQL and I need to
> be able to detect when a roll back 
> condition may exist.
> 
> If a web page has a MySQL transaction such as INSERT will
> any initiated INSERT complete even if the 
> browser is closed or is there a possibility of some fields
> being INSERTed and others not?

Your PHP script accessing MySQL is running on the server.  It won't know when 
the browser window is closed.  The PHP script will try to send any prescribed 
output to the browser's connection.  The HTML content will be sent but won't be 
picked up by the browser.  Usually this all occurs very quickly (far less than 
a second).

James Keeline
Now considering LAMP positions in San Diego.
http://www.keeline.com/resume

Reply via email to