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

Popular posts from this blog

c++ - CryptStringToBinary API behavior -

c++ - Correct method for redrawing a layered window -

java.util.scanner - How to read and add only numbers to array from a text file -