Home > PHP > Function > Sybase > sybase_affected_rows()

sybase_affected_rows()

sybase_affected_rows - Gets number of affected rows in last query

Syntax

int sybase_affected_rows (resource $link_identifier)

Arguments

  • link_identifier - If the link identifier isn\'t specified, the last opened link is assumed.

Description

sybase_affected_rows() returns the number of rows affected by the last INSERT, UPDATE or DELETE query on the server associated with the specified link identifier.

Version

PHP 4, 5

Return value

Returns the number of affected rows, as an integer.