php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #8086 query link identifiers are not usable
Submitted: 2000-12-03 10:13 UTC Modified: 2001-06-30 14:59 UTC
From: jcelle at alternis dot fr Assigned:
Status: Closed Package: MSSQL related
PHP Version: 4.0.3pl1 OS: windows nt 4.0 station
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
32 + 34 = ?
Subscribe to this entry?

 
 [2000-12-03 10:13 UTC] jcelle at alternis dot 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:\php\default.php4 on line 17
mssql_num_fields : 
Warning: Supplied argument is not a valid MS SQL-result resource in c:\php\default.php4 on line 18
mssql_num_rows : 

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-06-30 14:59 UTC] fmk@php.net
Update to latest version. All link identifiers has been changed from integers to resources.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 09:01:27 2024 UTC