Table of Contents
valentina_list_dbs()
Declaration
resource valentina_list_dbs( [resource link_identifier] )
Parameters
Name | Description |
---|---|
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
Retrieves the lists of all databases on the Valentina Server.
Return Values
Returns a positive result resource, or FALSE on error.
Examples
Example 1.
<?php $link = valentina_connect('localhost', 'val_user', 'val_password'); if (!$link) { die('Could not connect: ' . valentina_error()); } $curs = valentina_list_dbs(); printf("First database name is %d\n", valentina_db_name( $curs, 1)); ?>