Home    Back    Forward    Refresh    txtSQL Homepage

unlockdb
Purpose: To remove a file lock on a database
txtSQL >= 2.2.0 Beta
void unlockdb ( $database )

This function will return TRUE if $database was successfully unlocked and FALSE otherwise. A file lock is basically a file created that tells txtSQL that it is locked.


Example 13: unlockdb() Copy to clipboard
<?php
if ( $sql->unlockdb('testDB') )
{
    print
'testDB is now unlocked';
}
else
{
    print
'testDB could not be unlocked, txtSQL said: '.$sql->get_last_error();
}
?>


User Comments - unlockdb
No comments posted yet;
Last Page Next Page

'Language Reference'

User Functions

Database Functions
  • showdbs
  • createdb
  • dropdb
  • renamedb
  • isLocked
  • lockdb
  • unlockdb
  • selectdb
  • db_exists

    Data Manipulation Functions

    Table Functions

    Error Handling Functions

    SQL Syntax

  • [ txtSQL Documentation powered by txtSQL | 6 SQL Queries ]