Advertisement
Guest User

Untitled

a guest
Sep 26th, 2017
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.39 KB | None | 0 0
  1.       if ($query instanceof DatabaseStatementInterface) {
  2.         $stmt = $query;
  3.         $stmt->execute(NULL, $options);
  4.       }
  5.       else if (is_string($query)) {
  6.         $this->expandArguments($query, $args);
  7.         $stmt = $this->prepareQuery($query);
  8.         $stmt->execute($args, $options);
  9.       }
  10.       else {
  11.         throw new DbtngIdiotException('You are an idiot.');
  12.       }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement