Home >> FAQs/Tutorials >> SQL Server FAQ
SQL Server FAQ - PHP MSSQL - mssql_rows_affected[] - Number of Affected Rows
[Continued from previous topic...]
PHP MSSQL - How To Get the Number of Affected Rows?
If you insert multiple rows with a single INSERT statement, you can use the mssql_rows_affected[] function to find out how many rows were inserted. mssql_rows_affected[$connection] returns the number of affected rows of the last INSET, UPDATE or DELETE statement.
The following tutorial script shows you report back the number of rows inserted properly: