php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #12338 Cannot open two connection simultaneously
Submitted: 2001-07-24 10:11 UTC Modified: 2002-08-13 23:51 UTC
From: dragosoft at inwind dot it Assigned:
Status: Not a bug Package: InterBase related
PHP Version: 4.0.6 OS: Windows ME & Windows 2000
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: dragosoft at inwind dot it
New email:
PHP Version: OS:

 

 [2001-07-24 10:11 UTC] dragosoft at inwind dot it
index.HTML

{provaSX.php}
{provaDX.php}


//provaDX.PHP
<?php

	$NomeDB='MyDB_Path/MyDB_Name.gdb';
	$User='MyUserName';
	$Password='MyPassword';

	$ConnessioneDB=ibase_connect($NomeDB, $User, $Password);}

	if (IsSet($ConnessioneDB))
	{
		$Query='SELECT NomeArt, CostoArt FROM ARTICOLI';

		$RisultatoQuery=ibase_query($ConnessioneDB, $Query);

		if (IsSet($RisultatoQuery))
		{
			echo"<TABLE>";
			while ($Riga=ibase_fetch_row($RisultatoQuery))
			{
				echo "<TR>";
				echo "<TD> $Riga[0] </TD><TD> $Riga[1] </TD>";
				echo "</TR>";
			}
			echo "</TABLE>";
		}
		else
		{
			echo "La query ? vuota!";
		}
	}
	else
		echo "Connessione a $NomeDB fallita";
?>

//provaSX.PHP
<?php

	$NomeDB='MyDB_Path/MyDB_Name.gdb';
	$User='MyUserName';
	$Password='MyPassword';

	$ConnessioneDB=ibase_connect($NomeDB, $User, $Password);}

	if (IsSet($ConnessioneDB))
	{
		$Query='SELECT NomeArt, CostoArt FROM ARTICOLI';

		$RisultatoQuery=ibase_query($ConnessioneDB, $Query);

		if (IsSet($RisultatoQuery))
		{
			echo"<TABLE>";
			while ($Riga=ibase_fetch_row($RisultatoQuery))
			{
				echo "<TR>";
				echo "<TD> $Riga[0] </TD><TD> $Riga[1] </TD>";
				echo "</TR>";
			}
			echo "</TABLE>";
		}
		else
		{
			echo "La query ? vuota!";
		}
	}
	else
		echo "Connessione a $NomeDB fallita";
?>

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-08-13 23:51 UTC] iliaa@php.net
Thank you for taking the time to report a problem with PHP.
Unfortunately you are not using a current version of PHP -- 
the problem might already be fixed. Please download a new
PHP version from http://www.php.net/downloads.php

If you are able to reproduce the bug with one of the latest
versions of PHP, please change the PHP version on this bug report
to the version you tested and change the status back to "Open".
Again, thank you for your continued support of PHP.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Dec 22 06:01:30 2024 UTC