08-11-2011, 01:22 PM
[eluser]RECOHA[/eluser]
Hello Guys,
Sorry about the english, but I've a doubt about one thing.
This code returns:
I can't do this or I'm doing wrong?
Ty.
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.