Welcome Guest, Not a member yet? Register   Sign In
codeigniter mysql users
#1

[eluser]crwtrue[/eluser]
i am making a big site that has a lot of web applications. I know that in codeigniter i can make a index-controller which makes the first page with the links etc.. and which checks users name and password and then redirects user to an right web application which is in separate folder with its own controller. So even thought that there is autentication i would like the site have diffrent mysql configs in diffrent part of the site so that user which dont have accees to the applications could only use mysql user that have access to not important databases and could only use like select sql-sentence.
#2

[eluser]rdjs[/eluser]
You can define different DB's and then load the DB you need depending on where you are in the site:

[code]
$DB1 = $this->load->database('group_one', TRUE);
$DB2 = $this->load->database('group_two', TRUE);
[code]




Theme © iAndrew 2016 - Forum software by © MyBB