예제 #1
0
파일: Mysql.php 프로젝트: noon/phpMyFAQ
 /**
  * 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;
 }
예제 #2
0
파일: Mssql.php 프로젝트: atlcurling/tkt
 /**
  * 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);
 }
예제 #3
0
파일: Pgsql.php 프로젝트: atlcurling/tkt
 /**
  * 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);
 }
예제 #4
0
파일: Oci8.php 프로젝트: noon/phpMyFAQ
 /**
  * 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;
 }
예제 #5
0
파일: Ibm_db2.php 프로젝트: nosch/phpMyFAQ
 /**
  * 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));
 }
예제 #6
0
파일: Ibase.php 프로젝트: noon/phpMyFAQ
 /**
  * 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);
 }