Welcome Guest, Not a member yet? Register   Sign In
Switching databases connection for use with $this->load->dbutil();
#1

[eluser]RECOHA[/eluser]
Hello Guys,

Sorry about the english, but I've a doubt about one thing.

Code:
public function fazBackup()
    {
        $banco['hostname'] = 'localhost';
        $banco['username'] = 'root';
        $banco['password'] = '';
        $banco['database'] = 'database';
        $banco['dbdriver'] = "mysql";
        $banco['dbprefix'] = "";
        $banco['pconnect'] = FALSE;
        $banco['db_debug'] = TRUE;
        $banco['cache_on'] = FALSE;
        $banco['cachedir'] = "";
        $banco['char_set'] = "utf8";
        $banco['dbcollat'] = "utf8_general_ci";
        
        $DB = $this->load->database($banco, TRUE);
        $DB->load->dbutil();

    }

This code returns:

Code:
A PHP Error was encountered

Severity: Notice

Message: Undefined property: CI_DB_mysql_driver::$load

Filename: intranet/ferramentas.php

Line Number: 42

Fatal error: Call to a member function dbutil() on a non-object in /home/hyadmin/hayaweb.com.br/application/controllers/intranet/ferramentas.php on line 42

I can't do this or I'm doing wrong?

Ty.


Messages In This Thread
Switching databases connection for use with $this->load->dbutil(); - by El Forum - 08-11-2011, 01:22 PM



Theme © iAndrew 2016 - Forum software by © MyBB