(PHP 4 >= 4.0.4, PHP 5, PECL odbtp >= 1.1.1)
mssql_rows_affected — Returns the number of records affected by the query
Această funcție a fost ELIMINATĂ în PHP 7.0.0.
Variante alternative pentru această funcție sunt:
$link_identifier
) : intReturns the number of records affected by the last write query.
link_identifier
A MS SQL link identifier, returned by mssql_connect() or mssql_pconnect().
Returns the number of records affected by last operation.
Example #1 mssql_rows_affected() example
<?php
// Delete all rows in a table
mssql_query('TRUNCATE TABLE [php].[dbo].[persons]');
echo 'Deleted ' . mssql_rows_affected($link) . ' row(s)';
?>