• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Switching database config for model not working: $this->load->database('name')

#2
[eluser]mejlo[/eluser]
HI,
try:
Code:
$db = $this->load->database('secondary', TRUE);
$company_query = $db->query('SELECT * FROM secondary_table');


Messages In This Thread
Switching database config for model not working: $this->load->database('name') - by El Forum - 07-22-2011, 12:37 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.