Coding with SPIP 3.0
SPIP3.0 Technical Documentation

> > > > sql_alltable

sql_alltable

The sql_alltable() function returns an array listing the various SQL tables that exist in the database. it accepts the same parameters as sql_showbase:

  1. $spip empty by default, the parameter is used to list only the tables using the prefix defined for SPIP tables. Use '%' instead if you want to list ALL tables,
  2. $serveur,
  3. $option.

Usage:

  1. $tables = sql_alltable();
  2. sort($tables);
  3. // $tables[0] : spip_articles

Download

  • Author :
  • Published :
  • Updated : 02/06/10
  • Translations : English, français