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
 [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: Thu Oct 31 23:01:28 2024 UTC