Home > PHP > Function > mSQL > msql_drop_db()

msql_drop_db()

msql_drop_db - Drop (delete) mSQL database

Syntax

bool msql_drop_db (string $database_name, resource $link_identifier)

Arguments

  • database_name - The name of the database.
  • link_identifier - The mSQL connection. If not specified, the last link opened by msql_connect() is assumed. If no such link is found, the function will try to establish a link as if msql_connect() was called, and use it.

Description

msql_drop_db() attempts to drop (remove) a database from the mSQL server.

Version

PHP 4, 5

Return value

Returns TRUE on success or FALSE on failure.