function db_escape_table


Error message

User warning: The following module is missing from the file system: theme/theme. For information about how to fix this, see the documentation page. in _drupal_trigger_error_with_delayed_logging() (line 1156 of /var/www/html/elmsln_community/
cis7 db_escape_table($table)
cle7 db_escape_table($table)
elmsmedia7 db_escape_table($table)
icor7 db_escape_table($table)
meedjum_blog7 db_escape_table($table)
mooc7 db_escape_table($table)

Restricts a dynamic table name to safe characters.

Only keeps alphanumeric and underscores.


$table: The table name to escape.

Return value

The escaped table name as a string.

Related topics

11 calls to db_escape_table()
backup_migrate_destination_db_mysql::_lock_tables in sites/all/modules/ulmus/backup_migrate/includes/
Lock the list of given tables in the database.
DataHandler::load in sites/all/modules/local_contrib/data/includes/
Load a record.
DataHandler::truncate in sites/all/modules/local_contrib/data/includes/
Empty data table.
DataTable::__construct in sites/all/modules/local_contrib/data/includes/
Constructor. Do not call directly, but use DataTable::instance($name) instead.
data_safe_name in sites/all/modules/local_contrib/data/data.module
Create a safe name for MySQL field or table names.

... See full list


includes/database/, line 2566
Core systems for the database layer.


function db_escape_table($table) {
  return Database::getConnection()->escapeTable($table);