/** * This function sends a query to the database. * * @param string $query Query string * @return mixed */ public function query($query) { $this->sqllog .= pmf_debug($query); $result = mysql_query($query, $this->conn); if (!$result) { $this->sqllog .= $this->error(); } return $result; }
/** * Sends a query to the database. * * @param string $query Query * * @return resource */ function query($query) { $this->sqllog .= pmf_debug($query); return mssql_query($query, $this->conn); }
/** * Sends a query to the database. * * @param string $query * @return mixed $result */ public function query($query) { $this->sqllog .= pmf_debug($query); return pg_query($this->conn, $query); }
/** * Sends a query to the database. * * @param string $query * @return mixed $result * @access public * @author Thorsten Rinne <*****@*****.**> * @since 2005-09-20 */ public function query($query) { $this->sqllog .= pmf_debug($query); $stmt = oci_parse($this->conn, $query); oci_execute($stmt, OCI_DEFAULT); return $stmt; }
/** * This function sends a query to the database. * * @param string $query * @return mixed $result * @access public * @author Thorsten Rinne <*****@*****.**> * @since 2005-04-16 */ function query($query) { $this->sqllog .= pmf_debug($query); return db2_exec($this->conn, $query, array('cursor' => DB2_SCROLLABLE)); }
/** * Sends a query to the database. * * This function sends a query to the database. * * @param string $query * @return mixed $result * @access public * @author Thorsten Rinne <*****@*****.**> * @since 2005-04-16 */ function query($query) { $this->sqllog .= pmf_debug($query); return ibase_query($this->conn, $query); }