You are here

public function QPDB::query in QueryPath 6

Same name and namespace in other branches
  1. 7.3 QueryPath/Extension/QPDB.php \QPDB::query()
  2. 7.2 QueryPath/Extension/QPDB.php \QPDB::query()

File

QueryPath/Extension/QPDB.php, line 61

Class

QPDB

Code

public function query($sql, $args = array()) {
  $this->stmt = $this->db
    ->prepare($sql);
  $this->stmt
    ->execute($args);
  return $this->qp;
}