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'];
}
?>
