disconnect Back | Forward | Home

'Language Reference'

User Functions
  • connect

  • disconnect

  • grant_permissions

  • getUsers

  • version

  • query_count


  • Database Functions

    Data Manipulation Functions

    Table Functions

    Error Handling Functions

    << Last Section ( connect ) disconnect Next Section ( grant_permissions ) >>
    Usage bool disconnect ( )
    Purpose Disconnect from the txtSQL service
    Availability txtSQL >= 1.0.0

    This function allows for a connected user to disconnect from the txtSQL service. Although this is not mandatory, it exists for development purposes. If a user is not connected, it will return false, and issue a warning, which may be surpessed using strict(0).

    Note- This function will return false if not already connected

    Example 2: disconnect() Copy to Clipboard
    <?php
    include('./txtSQL.class.php');
    $sql = new txtSQL('./data');
    $sql->connect('root', '') or die('Error occurred while connecting, txtSQL said: '.$sql->get_last_error());

    $sql->disconnect();
    ?>

    User-Contributed Comments for:
    disconnect()
    No comments found;