db_is_active
- Versions
- 6 – 7
db_is_active()
Determine if there is an active connection.
Note that this method will return FALSE if no connection has been established yet, even if one could be.
Return value
TRUE if there is at least one database connection established, FALSE otherwise.
Related topics
Code
includes/database/database.inc, line 2218
<?php
function db_is_active() {
return Database::isActiveConnection();
}
?>Login or register to post comments 