From:             [EMAIL PROTECTED]
Operating system: Windows ME & Windows 2000
PHP version:      4.0.6
PHP Bug Type:     InterBase related
Bug description:  Cannot open two connection simultaneously

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";
?>

-- 
Edit bug report at: http://bugs.php.net/?id=12338&edit=1


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to