function db_error

Same name in this branch
  1. 6.x drupal-6.x/includes/database.mysqli.inc \db_error()
  2. 6.x drupal-6.x/includes/database.mysql.inc \db_error()
  3. 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.mysqli.inc, line 196
Database interface code for MySQL database servers using the mysqli client libraries. mysqli is included in PHP 5 by default and allows developers to use the advanced features of MySQL 4.1.x, 5.0.x and beyond.

Código

function db_error() {
  global $active_db;
  return mysqli_errno($active_db);
}