Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

ci4+ connection code

if ($db_obj->conn_id === false) {
    $config['db_debug'] = true;
    $config['hostname'] = "myMasterDatabase.com";
    $db_obj=$CI->load->database($config, TRUE);
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #connection #code
ADD COMMENT
Topic
Name
3+1 =