unlockdb Back | Forward | Home

'Language Reference'

User Functions

Database Functions
  • showdbs

  • createdb

  • dropdb

  • renamedb

  • isLocked

  • lockdb

  • unlockdb

  • selectdb

  • db_exists


  • Data Manipulation Functions

    Table Functions

    Error Handling Functions

    << Last Section ( lockdb ) unlockdb Next Section ( selectdb ) >>
    Usage void unlockdb ( $database )
    Purpose To remove a file lock on a database
    Availability txtSQL >= 2.2.0 Beta

    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-Contributed Comments for:
    unlockdb()
    No comments found;