Welcome Guest, Not a member yet? Register   Sign In
Multiple Database Connections
#1

[eluser]Johnathan1707[/eluser]
Hey, I'm going to use CodeIgniter on a web app I'm building and was wondering what the best way to do this would be.
I have one database used for the app itself, members details etc.
The user will enter login credentials for their own databases then they can run queries on it from my site. I was wondering if there is a built in way in CodeIgniter to do this and if not is there a way I can modify the database functions to pass in a db connection.
If I were doing it in plain PHP I'd probably do..
Code:
mysql_query('SELECT some,stuff FROM table',$user_connection);
I'd like something to work like that in my app.

Thank you Smile


Messages In This Thread
Multiple Database Connections - by El Forum - 08-23-2010, 03:44 AM
Multiple Database Connections - by El Forum - 08-23-2010, 03:52 AM
Multiple Database Connections - by El Forum - 08-23-2010, 03:58 AM
Multiple Database Connections - by El Forum - 08-23-2010, 04:17 AM
Multiple Database Connections - by El Forum - 09-09-2010, 06:50 PM
Multiple Database Connections - by El Forum - 01-19-2011, 05:27 PM
Multiple Database Connections - by El Forum - 01-19-2011, 06:49 PM
Multiple Database Connections - by El Forum - 01-19-2011, 07:35 PM
Multiple Database Connections - by El Forum - 01-19-2011, 07:51 PM
Multiple Database Connections - by El Forum - 05-01-2012, 04:07 AM
Multiple Database Connections - by El Forum - 05-01-2012, 04:26 AM
Multiple Database Connections - by El Forum - 11-30-2012, 07:58 PM
Multiple Database Connections - by El Forum - 05-12-2013, 03:20 AM
Multiple Database Connections - by El Forum - 08-09-2013, 10:58 AM
Multiple Database Connections - by El Forum - 08-09-2013, 11:23 PM
Multiple Database Connections - by El Forum - 08-10-2013, 12:10 AM
Multiple Database Connections - by El Forum - 08-21-2013, 05:24 AM



Theme © iAndrew 2016 - Forum software by © MyBB