/** * Method to create/send query to RDBMS * * @param string $str_query * @param string $str_query_type * @return object */ function query($str_query = '', $str_query_type = 'query') { if (empty($str_query)) { $this->error = 'Cant send ISIS query because query was empty'; parent::showError(true); } else { $_result = new simbio_isis_result($str_query, $str_query_type, $this->res_conn); // return the result object if ($this->error) { return false; } else { return $_result; } } }
/** * Method to create/send query to RDBMS * * @param string $str_query * @return object */ public function query($str_query = '') { if (empty($str_query)) { $this->error = 'Cant send query because query was empty'; parent::showError(true); } else { $_result = new simbio_sqlite_result($str_query, $this->res_conn); $this->affected_rows = $_result->affected_rows; $this->errno = $_result->errno; $this->error = $_result->error; $this->insert_id = $_result->insert_id; // return the result object if ($this->error) { return false; } else { return $_result; } } }
/** * Method to create/send query to RDBMS * * @param string $str_query * @return object */ public function query($str_query = '') { if (empty($str_query)) { $this->error = "Error on simbio_mysql::query() method : query empty"; parent::showError(true); } else { // create simbio_mysql_result object $result = new simbio_mysql_result($str_query, $this->res_conn); // get any properties from result object $this->affected_rows = $result->affected_rows; $this->errno = $result->errno; $this->error = $result->error; $this->insert_id = $result->insert_id; // return the result object if ($this->error) { return false; } else { return $result; } } }