db_affected_rows
Definition
db_affected_rows()
includes/database.pgsql.inc, line 236
Description
Determine the number of rows changed by the preceding query.
Related topics
| Name | Description |
|---|---|
| Database abstraction layer | Allow the use of different database servers using the same code base. |
Code
<?php
function db_affected_rows() {
global $last_result;
return empty($last_result) ? 0 : pg_affected_rows($last_result);
}
?> 