switching databases |
Hi all,
I am trying to use / change the database for different organizations / users. In master database, I have db_name for different organizations, I am using the following code to store the db_name in session. Code: $condition = "subdomain =" . "'" . $data['subdomain'] . "' AND " . "status =1"; in another model, switch the database PHP Code: $db_name = $this->session->userdata('db_name'); Its working in localhost but not on my live server. Whats wrong here? |
Messages In This Thread |
switching databases - by nadeem14375 - 10-05-2017, 04:06 AM
RE: switching databases - by ponzo - 10-05-2017, 04:33 AM
RE: switching databases - by nadeem14375 - 10-05-2017, 04:58 AM
RE: switching databases - by nadeem14375 - 10-05-2017, 06:50 AM
|