Displaying 1 result from an estimated 1 matches for "result_id".
Did you mean:
result_fd
2005 Dec 05
0
about php-ODBC , unixODBC, freetds and MSSQL server
...f( (char*)szSepLine );
SQLRowCount( hStmt, &nRowsAffected );
printf( "SQLRowCount returns %d\n", nRowsAffected
);
if ( nRows )
{
printf( "%d rows fetched\n", nRows );
}
}
from odbc php module php_odbc.c :
/* {{{ proto int odbc_num_rows(resource result_id)
Get number of rows in a result */
PHP_FUNCTION(odbc_num_rows)
{
odbc_result *result;
SDWORD rows;
pval **pv_res;
if (zend_get_parameters_ex(1, &pv_res) == FAILURE)
{
WRONG_PARAM_COUNT;
}
ZEND_FETCH_RESOURCE(result, odbc_result *, pv_res,
-1, "ODBC result", le_result);
S...