db_error
Definition
db_error()
includes/database.pgsql.inc, line 216
Description
Determine whether the previous query caused an error.
Related topics
| Name | Description |
|---|---|
| Database abstraction layer | Allow the use of different database servers using the same code base. |
Code
<?php
function db_error() {
global $active_db;
return pg_last_error($active_db);
}
?> 