-
Notifications
You must be signed in to change notification settings - Fork 0
isConnected
Ayoob edited this page Apr 11, 2020
·
2 revisions
[easySQLite3 >= v0.1.0 (Beta)]
Check if a Database is connected.
isConnected( void ) : boolean
This function checks if the class is connected to a database.
None.
The function returns a boolean value. It returns true
if the class is connected to a database, otherwise it returns false
.
Example #1 : Check database connection status.
include "easySQLite3.class.php";
$db = new easySQLite3("database.sqlite");
if ( $db->isConnected() ) {
echo "Connected successfully.";
}else{
echo "Can't connect to the Database.";
exit;
}
- easySQLite3 - Opens an SQLite3 database, or create new database.
- connect - Connect to an existing database, or create new database.
- disconnect - Disconnect from a database and reset the class variables to the default.