Welcome Guest, Not a member yet? Register   Sign In
switching database for use with $this->load->dbutil();
#2

[eluser]Randy Casburn[/eluser]
[quote author="matt2012" date="1223500736"]im trying to backup a database but the dbutil seems to use the default group
how do I get it to use another database group.

Code:
$this->load->database($group, TRUE);
$this->load->dbutil();
//$prefs =..
$backup =& $this->dbutil->backup($prefs);

Its working in that im getting a database downloaded but not using $group
rather 'default_group';[/quote]

Right, try...

Code:
$myDbHandle = $this->load->database($group, TRUE);
$this->load->dbutil();
//$prefs =..
$backup =& $this->myDbHandle->dbutil->backup($prefs);

Randy


Messages In This Thread
switching database for use with $this->load->dbutil(); - by El Forum - 10-08-2008, 10:18 AM
switching database for use with $this->load->dbutil(); - by El Forum - 10-08-2008, 10:36 AM
switching database for use with $this->load->dbutil(); - by El Forum - 10-08-2008, 12:59 PM
switching database for use with $this->load->dbutil(); - by El Forum - 10-08-2008, 02:25 PM



Theme © iAndrew 2016 - Forum software by © MyBB