Coding with SPIP 3.0
SPIP3.0 Technical Documentation

> > > > sql_listdbs

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.

  1. $result = sql_listdbs($server_db);
  • Author :
  • Published :
  • Updated : 02/06/10
  • Translations : English, français