note 76788 added to function.mssql-rows-affected
| From: | PierreGros at osu1 dot php dot net | Date: | Mon, 30 Jul 2007 22:19:47 +0000 |
| Subject: | note 76788 added to function.mssql-rows-affected | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-129059@lists.php.net to get a copy of this message | ||
i don't know why, but on my linux debian with php5 I get a nice :
Fatal error: Call to undefined function mssql_rows_affected()
when I try to use this function.
So if you have some problems, try to use this :
1st function (the one with mssql_rows_affected):
<?php
function update($query){
mssql_query($query,$ressource);
return mssql_rows_affected($ressource);
}
?>
new function (the one I use now) :
<?php
function update($query){
mssql_query($query,$ressource);
$rsRows = mssql_query("select @@rowcount as rows", $ressource);
$rows = mssql_fetch_assoc($rsRows);
return $rows['rows'];
}
?>
----
Server IP: 194.246.101.61
Probable Submitter: 82.253.254.206
----
Manual Page -- http://www.php.net/manual/en/function.mssql-rows-affected.php
Edit -- https://master.php.net/note/edit/76788
Del: integrated -- https://master.php.net/note/delete/76788/integrated
Del: useless -- https://master.php.net/note/delete/76788/useless
Del: bad code -- https://master.php.net/note/delete/76788/bad+code
Del: spam -- https://master.php.net/note/delete/76788/spam
Del: non-english -- https://master.php.net/note/delete/76788/non-english
Del: in docs -- https://master.php.net/note/delete/76788/in+docs
Del: other reasons-- https://master.php.net/note/delete/76788
Reject -- https://master.php.net/note/reject/76788
Search -- https://master.php.net/manage/user-notes.php