Re: [phplib] mssql_affected_rows() From: Enrique Motilla (emotilla <email protected>)
Date: 04/03/01

Hi Daniel,
I faced the same issue, It seems that this was initially copied from the
MySql and then modified to suit the MSSQL interface but somehow missed that
there is no mssql_affected_rows function on the MSSQL API, so I found some
comments on php.net (see the modified version and the link to comments
below) I hope this works fine to you. Any other thing I can help just let me
know :)

/*----------------------DB_MSSQL.INC (modified) */

  function affected_rows() {
   $rsRows = mssql_query("select @ <email protected> as rows"); //,
$this->Query_ID);
    return mssql_result($rsRows, 0, "rows");
 // return mssql_affected_rows($this->Query_ID); ///funcion no existe
 /*------- http://www.php.net/manual/admin-notes.php?last_entry=1750 */

/*-----------------------end of block------------------*/

Regards,
Enrique Motilla

----- Original Message -----
From: <Potysch <email protected>>
To: <phplib <email protected>>
Sent: Tuesday, April 03, 2001 3:39 AM
Subject: [phplib] mssql_affected_rows()

hi,

I just tried to use phplib with MS-SQL Server for the first time. But
there seems to be an error in the db_mssql.inc. In line 126 there is a
function called mssql_affected_rows() which doesn't exist:

Fatal error: Call to unsupported or undefined function
mssql_affected_rows() in mylib\db_mssql.inc on line 126

I couldn't find this function in the PHP documentation too. Can I put
the function mssql_num_rows() instead?

thanks!
Daniel

---------------------------------------------------------------------
To unsubscribe, e-mail: phplib-unsubscribe <email protected>
For additional commands, e-mail: phplib-help <email protected>

---------------------------------------------------------------------
To unsubscribe, e-mail: phplib-unsubscribe <email protected>
For additional commands, e-mail: phplib-help <email protected>