Select Database on demand |
[eluser]Unknown[/eluser]
Hello All, Is there a way to allow user to select a database on demand when logging into my application? some thing like, Username(db username) : Password(db password) : Database : [ LOGIN ] Note: Hostname remains the same, thoughts?? Thanks Dev
[eluser]TheFuzzy0ne[/eluser]
Welcome to the CodeIgniter forums! Sure. You can just pass an array into $this->load->database(); Code: $config['hostname'] = 'localhost'; It's all in the manual... http://ellislab.com/codeigniter/user-gui...cting.html |
Welcome Guest, Not a member yet? Register Sign In |