php - Mysql rollBack error from different database -
try{ $sql=$user_db->prepare("insert user (..."); $sql->execute(); $id=$user->lastinsertid('user');//need id next query //connect 2nd db //$sql2=$message_db->prepare("update...."); }catch{...} i have 2 queries 2 different db
is way roll error & stop process if there error?
because 2 different db couldn't use transaction.
ps.1st db innodb, my 2nd db mysqlisam (not support transaction)
Comments
Post a Comment