Bug #8086 Updated: query link identifiers are not usable

From: Date: Sat, 30 Jun 2001 18:59:00 +0000
Subject: Bug #8086 Updated: query link identifiers are not usable
Groups: php.dev 
Request: Send a blank email to php-dev+get-58544@lists.php.net to get a copy of this message
ID: 8086 Updated by: fmk Reported By: jcelle@alternis.fr Old-Status: Open Status: Closed Bug Type: MSSQL related Operating system: PHP Version: 4.0.3pl1 Assigned To: Comments: Update to latest version. All link identifiers has been changed from integers to resources. Previous Comments: --------------------------------------------------------------------------- [2000-12-03 10:13:26] jcelle@alternis.fr This report uses php 4.04 and the php_mssql70.dll extension on windows nt 4. There seem to be a problem with the functions that accept a mssql_query() link identifier as parameter. I have the followin basic script : $hdb = mssql_connect( "testserver", "test", "testpwd" ); print( "hdb = $hdb<br>" ); print( "mssql_select_db : ".mssql_select_db( "test_db", $hdb )."<br>" ); $hcur = mssql_query( "select * from t_test", $hdb ); print( "hcur = $hcur<br>" ); print( "mssql_num_fields : ".mssql_num_fields( $hcur )."<br>" ); print( "mssql_num_rows : ".mssql_num_rows( $hcur )."<br>" ); which produces the following output : hdb = Resource id #1 mssql_select_db : 1 hcur = 1 Warning: Supplied argument is not a valid MS SQL-result resource in c:phpdefault.php4 on line 17 mssql_num_fields : Warning: Supplied argument is not a valid MS SQL-result resource in c:phpdefault.php4 on line 18 mssql_num_rows : --------------------------------------------------------------------------- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=8086&edit=2

« previous php.dev (#58544) next »