SHARE
TWEET

Untitled

a guest Oct 10th, 2019 67 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.            
  9.             self::connect()->commit();  
  10.             return true;
  11.         }
  12.         catch (Exception $e) {
  13.             self::connect()->rollBack();
  14.             self::exception_handler($e->getCode(), $e->getMessage(), $e->getLine(), $e->getFile());
  15.             return false;
  16.         }
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
 
Top