Home    Back    Forward    Refresh    txtSQL Homepage

showdbs
Purpose: To obtain a list of current txtSQL databases
txtSQL >= 2.0.0 Beta
mixed showdbs ()

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 Comments - showdbs
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 ]