Welcome Guest, Not a member yet? Register   Sign In
database weirdness
#1

[eluser]DougW[/eluser]
I have my default database set up in database.php in config. I want a user to log in using a user table in that default database and THEN load that users's parameters for his own database to connect to. I can;t add the database connection parms in database.php because when that gets loaded I don't know them yet.

Can I set those parms to dummy variables, then reset them after I load the user's data and THEN connect to the DB in my model?

Is there a better way?


Messages In This Thread
database weirdness - by El Forum - 08-16-2009, 10:05 PM
database weirdness - by El Forum - 08-17-2009, 02:13 AM
database weirdness - by El Forum - 08-17-2009, 08:05 AM



Theme © iAndrew 2016 - Forum software by © MyBB