showdbs 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 ( Database Functions ) showdbs Next Section ( createdb ) >>
    Usage mixed showdbs ()
    Purpose To obtain a list of current txtSQL databases
    Availability txtSQL >= 2.0.0 Beta

    This function, when called, will return an array filled with a list of current txtSQL databases which are located inside of the current working directory.

    Note- This function will not return the database 'txtsql', as it is an internal working db

    Example 7: showdbs() Copy to Clipboard
    <?php
    // $databases now contains a list of txtSQL databases
    $databases = $sql->showdbs();
    foreach (
    $databases as $key => $value )
    {
        print
    "Database: $value<br>\n";
    }
    ?>

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