php.net |  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
Votes:1
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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: godwizard at hotmail dot com
New email:
PHP Version: OS:

 

 [2004-02-27 10:05 UTC] godwizard at hotmail dot com
Description:
------------
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.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-03-16 11:59 UTC] sniper@php.net
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: Fri May 10 11:01:32 2024 UTC