Table of Contents
valentina_drop_db()
Declaration
bool valentina_drop_db ( string database_name, [resource link_identifier] )
Parameters
Name | Description | |
---|---|---|
database_name | The name of the database that will be deleted. | |
link_identifier | The VServer connection. If the link identifier is not specified, the last link opened by valentina_connect() is assumed. If by chance no connection is found, an E_WARNING level warning is generated. |
Description
Attempts to drop (remove) an entire database from the server associated with the specified link identifier.
Return Values
Returns TRUE on success or FALSE on failure.
Examples
Example 1.
<?php $link = valentina_connect('localhost', 'val_user', 'val_password'); valentina_drop_db( 'test_database', $link); if (!$link) { die('Could not connect: ' . valentina_error()); } valentina_close(); ?>
Notes
Note: For downward compatibility, the following deprecated alias may be used: valentina_dropdb()