Welcome Guest, Not a member yet? Register   Sign In
Different Database
#2

[eluser]Randy Casburn[/eluser]
Hi eiso,

Welcome to CI!

1) Make sure your second database group is declared with a non-persistent connection type
2) $secondDB = $this->load->database('groupname',TRUE);
3) $secondDB->query('DELETE * FROM USERS');

// JUST kidding with that last statement ;-)

You only need to worry about the naming convention with the second DB. It will keep you out of trouble down the road if you do both. For a retro-fit this will work fine.

Hope this helps,

Randy


Messages In This Thread
Different Database - by El Forum - 11-22-2008, 04:42 PM
Different Database - by El Forum - 11-23-2008, 12:14 AM
Different Database - by El Forum - 11-23-2008, 05:33 AM
Different Database - by El Forum - 11-23-2008, 08:45 AM
Different Database - by El Forum - 11-23-2008, 08:58 AM
Different Database - by El Forum - 11-23-2008, 09:30 AM
Different Database - by El Forum - 11-23-2008, 10:04 AM
Different Database - by El Forum - 11-23-2008, 11:02 AM



Theme © iAndrew 2016 - Forum software by © MyBB