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
Post a Comment