|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #27420 Can't execute any SQL query after this kind of query
Submitted: 2004-02-27 10:05 UTC Modified: 2004-03-16 11:59 UTC
Avg. Score:5.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: godwizard at hotmail dot com Assigned:
Status: No Feedback Package: MSSQL related
PHP Version: 4.3.4 OS: Windows 2000
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 — but make sure to vote on the bug!
Your email address:
Solve the problem:
39 - 16 = ?
Subscribe to this entry?

 [2004-02-27 10:05 UTC] godwizard at hotmail dot com
Executing SQL query and trying to move next SQL query but after this query db connection is closed and you can't open db connection again. This problem come's always after that kind of query.

Reproduce code:
$result = mssql_query( "if exists (select kuvaurl from kuvagalleria where koiraid = $koiraID and oletus = '1') begin select kuvaurl from kuvagalleria where koiraid = $koiraID and oletus = '1' end else select '00091' as kuvaurl" );
while ($a_row = mssql_fetch_array( $result ) )
$kuvaurl = "$a_row[kuvaurl]";

Expected result:
I'd like to make another SQL query.

Actual result:
DB connection is closed and you can't execute any SQL query after that code in same page like it should. Problem is not in SQL Server, the code do sth what anybody doesn't understand.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2004-03-16 11:59 UTC]
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.

PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Feb 26 22:01:28 2024 UTC