SHARE
TWEET

Untitled

a guest Oct 10th, 2019 66 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. try {
  2.     self::connect()->beginTransaction();
  3.    
  4.         foreach($queriesWithParams as $query => $params) {
  5.             $stmt = self::connect()->prepare($query);
  6.             $stmt->execute($params);
  7.         }
  8.     self::connect()->commit();  
  9.     return true;
  10.     }
  11.     catch (Exception $e) {
  12.         self::connect()->rollBack();
  13.         self::exception_handler($e->getCode(), $e->getMessage(), $e->getLine(), $e->getFile());
  14.         return false;
  15.     }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top