database type problem...? / Help Please!

database type problem...?

I get the following error when trying to run a query using $DB→query(/*my sql statement*/); (" $DB " is defined as: " $DB = new fDatabase('mysql', '********', '********', '********', '********'); "):

Fatal error: Uncaught exception 'fProgrammerException' with message 'The database type specified, fDatabase Object ( [cache:private] => {null} [connection:private] => resource(22) of type (mysql link) [database:private] => ********* [debug:private] => {null} [extension:protected] => mysql [host:private] => ********* [inside_transaction:private] => {null} [password:private] => ********* [port:private] => {null} [query_time:private] => {null} [schema_info:protected] => Array ( ) [slow_query_threshold:private] => {null} [translation:private] => {null} [type:private] => mysql [unbuffered_result:private] => {null} [username:private] => ********* ), is invalid. Must be one of: mssql, mysql, oracle, postgresql, sqlite.' in /********my server********/clients/dennis/include/flourish/fResult.php:144 Stack trace: #0 /********my server********/clients/dennis/include/flourish/fDatabase.php(2090): fResult->__construct(Object(fDatab in /********my server********/clients/dennis/include/flourish/fResult.php on line 144

Does this mean that the fDatabase type is not being correctly set? Or is the database itself not being recognized? Where do I need to start fixing? I'd really appreciate any help. Thanks!

  • Message #427

    I believe you have a recent version of fDatabase but an older version of fResult. Make sure you have the fResult class from the same revision of Flourish that you got the fDatabase class from.

    • Message #428

      solved it! perfect!