'Language Reference'
User Functions
Database Functions
showdbs
createdb
dropdb
renamedb
isLocked
lockdb
unlockdb
selectdb
db_exists
Data Manipulation Functions
Table Functions
Error Handling Functions
|
Usage |
bool isLocked ( $database ) |
Purpose |
To check whether a database is locked or not |
Availability |
txtSQL >= 2.2.0 Beta |
This function will return TRUE if $database has a file lock on it, and false otherwise. A file lock is basically a file created that tells txtSQL that it is locked.
Example 11: isLocked()
| Copy to Clipboard |
<?php
if ( $sql->isLocked('testDB') )
{
print 'testDB is locked';
}
else
{
print 'testDB is NOT locked';
}
?>
|
User-Contributed Comments for: isLocked() |
|
No comments found; |
|