Home    Back    Forward    Refresh    txtSQL Homepage

disconnect
Purpose: Disconnect from the txtSQL service
txtSQL >= 1.0.0
bool disconnect ( )

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 Comments - disconnect
No comments posted yet;
Last Page Next Page

'Language Reference'

User Functions
  • connect
  • disconnect
  • grant_permissions
  • getUsers
  • version
  • query_count

    Database Functions

    Data Manipulation Functions

    Table Functions

    Error Handling Functions

    SQL Syntax

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