Welcome Guest, Not a member yet? Register   Sign In
Database Transactions With Multiple Active Records Calls In Separate PHP Functions
#7

[eluser]asciiCode[/eluser]
Assuming I get InnoDB setup ... just to be clear it is ok to have php logic between the trans_start and trans_compete calls? Something like this.

$this->db->trans_start();

if (not $this->UserExists())
$this->CreateUser();

$this->UpdateContactInformation();

$this->db->trans_complete();


Messages In This Thread
Database Transactions With Multiple Active Records Calls In Separate PHP Functions - by El Forum - 09-02-2010, 11:16 AM



Theme © iAndrew 2016 - Forum software by © MyBB