Jump to content

Why can't I rollback!?


dave_biscuits

Recommended Posts

Hi Everyone,

 

I'm trying  to do a simple procedure: begin, update, rollback ... only problem is it keeps committing!!

 

I'm tearing my hair out here ... tried it numerous ways with no success so far. Current code looks like:

 

      /* turn autocommit off */
      mysqli_autocommit($link, FALSE);
      
      mysqli_query($link, "UPDATE customer SET ".$update." WHERE customer_uid = '".$data['customer_uid']."';");

      mysqli_rollback($link);

 

But it keeps updating the database despite my efforts.

 

PHP5, Apache 2.2, FreeBSD 7.0 ... pretty much out of the box setup config wise.

 

Any ideas??

 

Thanks, Dave

 

 

 

 

Link to comment
https://forums.phpfreaks.com/topic/193075-why-cant-i-rollback/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.