function db_error
Same name in this branch
- 6.x drupal-6.x/includes/database.mysqli.inc \db_error()
- 6.x drupal-6.x/includes/database.mysql.inc \db_error()
- 6.x drupal-6.x/includes/database.pgsql.inc \db_error()
Determine whether the previous query caused an error.
Related topics
Archivo
- drupal-6.x/
includes/ database.mysql.inc, line 196 - Database interface code for MySQL database servers.
Código
function db_error() {
global $active_db;
return mysql_errno($active_db);
}