Welcome Guest, Not a member yet? Register   Sign In
2 databases, 1 transaction?
#1

Hi all!

My question is simple may be- Can I do the following:

$this->db->trans_start()
add(edit, delete) a record in database#1,
load database#2,
change $active_group,
add(edit, delete) a record in database#2,
close connection to #2,
change $active_group back,
and, at last, finish with $this->db->trans_complete()
?

Is the $this->db->trans_status() result reliable in this case or not?

Thank you
Reply


Messages In This Thread
2 databases, 1 transaction? - by DimCI - 02-13-2017, 04:37 AM
RE: 2 databases, 1 transaction? - by DimCI - 02-13-2017, 06:06 AM
RE: 2 databases, 1 transaction? - by qury - 02-13-2017, 07:15 AM



Theme © iAndrew 2016 - Forum software by © MyBB