db_escape_string($text)
drupal/includes/database.pgsql.inc, line 230
Prepare user input for use in a database query, preventing SQL injection attacks. Note: This function requires PostgreSQL 7.2 or later.
| Name | Description |
|---|---|
| Database abstraction layer | Allow the use of different database servers using the same code base. |
function db_escape_string($text) {
return pg_escape_string($text);
}