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:

$tables = sql_alltable();
sort($tables);
// $tables[0] : spip_articles

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

Translations : English, français