Welcome Guest, Not a member yet? Register   Sign In
CI's mysql transction question
#2

[eluser]gtech[/eluser]
you can start and stop your transaction as you describe no problems (make sure you turn db_debug to FALSE or transactions do not work). The only problem you will find is when you call a transaction within a transaction, e.g. if payforgame_tmp had a trans_start and trans_complete the transaction would not work.


Even though the transaction will work in the above code, I personally think it makes more sense to engineer your code so that the transactions are left in the model (you can call functions that are in the same model).


Messages In This Thread
CI's mysql transction question - by El Forum - 06-12-2008, 07:45 AM
CI's mysql transction question - by El Forum - 06-12-2008, 09:47 AM
CI's mysql transction question - by El Forum - 06-13-2008, 03:25 AM



Theme © iAndrew 2016 - Forum software by © MyBB