Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Aug 5th, 2012  |  syntax: None  |  size: 0.31 KB  |  hits: 15  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Conneting to more than two databases with codeigniter
  2. $mssql = $this->load->database('mssql1', TRUE);
  3.        
  4. $mssq2 = $this->load->database('mssql2', TRUE);
  5.        
  6. function simple_query($sql)
  7. {
  8.     if ( ! $this->conn_id)
  9.     {
  10.         $this->initialize();
  11.     }
  12.     $this->db_select();
  13.  
  14.     return $this->_execute($sql);
  15. }