fbsql_affected_rows()
fbsql_affected_rows - Get number of affected rows in previous FrontBase operation
Syntax
int fbsql_affected_rows (
resource $link_identifier)
Arguments
- link_identifier - A FrontBase link identifier returned by fbsql_connect() or fbsql_pconnect(). If optional and not specified, the function will try to find an open link to the FrontBase server and if no such link is found it will try to create one as if fbsql_connect() was called with no arguments.
Description
fbsql_affected_rows() returns the number of rows affected by the last INSERT, UPDATE or DELETE query associated with link_identifier.
Version
PHP 4.0.6, 5
Return value
If the last query failed, this function will return -1.