num_rows; return FALSE; } function getInsertId() { return $this->insert_id; } function fetchRow(&$result) { if(is_object($result)) return $result->fetch_row(); return FALSE; } function fetchArray(&$result) { if(is_object($result)) return $result->fetch_array(MYSQLI_ASSOC); return FALSE; } function fetchObject(&$result) { if(is_object($result)) return $result->fetch_object(); return FALSE; } function fieldName(&$result,$i) { if(is_object($result)) return $result->fetch_field($i); return FALSE; } function fetchField(&$result,$i) { if(is_object($result)) return $result->fetch_field_direct($i); return FALSE; } function getFieldsNum(&$result) { if(is_object($result)) return $result->field_count; return FALSE; } function getAffectedRows() { if(is_object($result)) return $this->affected_rows; return FALSE; } function freeRecordSet(&$result) { if(is_object($result)) return $result->free(); } function error() { return $this->error; } function errno() { return $this->errno; } function &query($sql) { $result = parent::query($sql); if($this->errno!=0) { if ( $this->debug ) { $errorMsg = @$this->error; $errorNum = @$this->errno; _debuglog("MySQL Query Error: $sql\nError Number: $errorNum\nError Message: $errorMsg"); } } return $result; } } } // MYSQL_DATABASE_DEFINED