+ /**
+ * PHPFSPOT_DB database query & execute
+ *
+ * This function will execute a SQL query and return nothing.
+ */
+ public function db_exec($query = "")
+ {
+ if($this->getConnStatus()) {
+
+ $this->last_query = $query;
+
+ switch($this->parent->cfg->db_access) {
+ case 'native':
+ if(($result = sqlite3_exec($this->db, $query)) === false)
+ $this->ThrowError($this->getLastError());
+ break;
+ case 'pdo':
+ try {
+ $result = $this->db->query($query);
+ }
+ catch (Exception $e){
+ $this->ThrowError($e->getLMessage());
+ }
+ break;
+ }
+ }
+ else
+ $this->ThrowError("Can't execute query - we are not connected!");
+
+ } // db_exec()
+
+ public function db_fetch_object($resource)