dropdb 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 ( createdb ) dropdb Next Section ( renamedb ) >>
    Usage void dropdb ( array( 'db' => $db ) )
    Purpose To permanently delete a txtSQL database
    Availability txtSQL >= 2.0.0 Beta

    This function will PERMANENTLY drop a database ( so that means no undo-ing ), as long as it exists

    Note- This function will return false if the database doesn't already exists, or if the database specified is 'txtsql'

    Example 9: dropdb() Copy to Clipboard
    <?php
    // txtSQL dropped a database named testDatabase
    if ( !$sql->dropdb(array('db' => 'testDatabase')) )
    {
        die(
    'Error creating txtSQL DB, txtSQL said: '.$sql->get_last_error());
    }
    ?>

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