bool isConnected()
V5 Failed connection is false V6 failed connection is null
This function tests if a database connection has been established or not. You can use this to provide a controlled response to connection failure. The result of this function is either null, or the connectionId of the database if connected (==true)
$obj = new ADOdb\connector($acd); $conn = $obj->connect($database,$user,$password); if (!$conn->isConnected()) /* * fail gracefully * /