note 23420 added to function.mssql-rows-affected
| From: | blakjak at NOSPAM dot com dot au | Date: | Thu, 18 Jul 2002 06:00:18 +0000 |
| Subject: | note 23420 added to function.mssql-rows-affected | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-33232@lists.php.net to get a copy of this message | ||
At the time of writing this note, the mssql_rows_affected function doesn't seem to be working.
If you need to access the number of rows affected by the most recent mssql query, you can grab the
@@ROWCOUNT variable. A quick example of how to do this:
function rows_affected(){
$result = mssql_query("SELECT @@ROWCOUNT");
list($affected) = mssql_fetch_row($result);
return $affected;
}
--
http://www.php.net/manual/en/function.mssql-rows-affected.php
http://master.php.net/manage/user-notes.php?action=edit+23420
http://master.php.net/manage/user-notes.php?action=delete+23420
http://master.php.net/manage/user-notes.php?action=reject+23420