sql_listdbs

The sql_listdbs() function lists the various databases that are available for a particular connection. It returns a selection resource or directly a PHP array of the various databases (as is the case for SQLite).

It accepts 2 parameters:

  1. $serveur,
  2. $option.

SPIP uses this function during the installation routine to permit the selection, when one can be made, of which database to use from those authorised by the database manager.

$result = sql_listdbs($server_db);

Author Mark Baber Published : Updated : 12/03/23

Translations : English, français