[eluser]Unknown[/eluser]
Hi,
In a page I would like to have a user test fill in the connection parameters to a database and then test them to see if the database is online. Is there a way that I could do that with CodeIgniter ?
I' masking that because when I'm trying a database connection that doesn't work I get the default CI exception message.
[eluser]Glen Swinfield[/eluser]
eovidiu's answer should work. You need to supress the error (@) that is generated when the dbase cannot connect, in order to then deal with it yourself - i.e. tell the user the dbase is not online.