Runtime database connection details setup |
[eluser]theprodigy[/eluser]
According to the database section of the user_guide Quote:To connect manually to a desired database you can pass an array of values: Just fill the config array with the necessary values at runtime, then pass it into the load->database call. To connect to multiple databases, just set some variables equal to the load->database call, and pass in TRUE for the second parameter (it's listed in the same section of the user guide) Quote:If you need to connect to more than one database simultaneously you can do so as follows: Use these two in techniques together, and come up with something like: Code: $config['hostname'] = "localhost"; If you need to be connected to both databases at the same time, make sure to leave pconnect set to false, otherwise you may run into issues. |
Messages In This Thread |
Runtime database connection details setup - by El Forum - 02-13-2010, 11:13 AM
Runtime database connection details setup - by El Forum - 02-13-2010, 07:10 PM
|