[gelöst] Warum geschweifte Klammern bei DB-Verbindung? Bspw. "{term_data}"
am 24.03.2011 - 12:14 Uhr in
Aus reiner Neugier: Warum bspw.
$query = "SELECT tid, name from {term_data} ORDER BY name ASC";
… und nicht …
$query = "SELECT tid, name from term_data ORDER BY name ASC";
- Anmelden oder Registrieren um Kommentare zu schreiben

Selbst gelöst
am 24.03.2011 - 12:23 Uhr
Selbst gelöst (denke ich):
Queries sent to Drupal should wrap all table names in curly brackets. This function searches for this syntax and adds Drupal's table prefix to all tables, allowing Drupal to coexist with other systems in the same database if necessary.