db_escape_table

  1. drupal
    1. drupal6 database.inc
    2. drupal7
Versionen
drupal6 db_escape_table($string)
drupal7 db_escape_table($table)

Restrict a dynamic table, column or constraint name to safe characters.

Only keeps alphanumeric and underscores.

Übergabeparameter

$table The table name to escape.

Rückgabewert

The escaped table name as a string.

Verwandte Themen

Code

includes/database/database.inc, line 2002

<?php
function db_escape_table($table) {
  return Database::getConnection()->escapeTable($table);
}
?>

Kommentare

Kommentar hinzufügen

Der Inhalt dieses Feldes wird nicht öffentlich zugänglich angezeigt.
  • Internet- und E-Mail-Adressen werden automatisch umgewandelt.
  • Zulässige HTML-Tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Zeilen und Absätze werden automatisch erzeugt.

Weitere Informationen über Formatierungsoptionen

Kommentar hinzufügen

Der Inhalt dieses Feldes wird nicht öffentlich zugänglich angezeigt.
  • Internet- und E-Mail-Adressen werden automatisch umgewandelt.
  • Zulässige HTML-Tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Zeilen und Absätze werden automatisch erzeugt.

Weitere Informationen über Formatierungsoptionen