Error ROLLBACK TRANSACTION MSSQL with PHP try catch -


<?php   try {         $db->query("begin transaction");           $db->db_insert('insert',$fields);       $db->query("commit transaction");   } catch(exception $e){      $db->query("rollback transaction");   } ?> 

my code commit ok. when rollback error " rollback transaction request has no corresponding begin transaction. "


Comments

Popular posts from this blog

apache - PHP Soap issue while content length is larger -

asynchronous - Python asyncio task got bad yield -

javascript - Complete OpenIDConnect auth when requesting via Ajax -