Why won't you just use odbc_connect ?
----- Original Message -----
From: "Maris Kalnins" <[EMAIL PROTECTED]>
Sent: Wednesday, April 03, 2002 3:07 AM
Subject: [PHP] odbc_pconnect doesnt reuse connection
> Configuration: WinXP, the latest Apache, PHP4
> The problem is that every time the script runs and the following command
> $cx=odbc_pconnect($G_dbname, $G_dblogin, $G_dbpassw);
> it happens very often that a new connection is created instead of reusing
> the old one!
> Is there any idea what's wrong... ?
> And another question - when user hits reload or submit button at the
> actually this odbc_pconnect is in progress - it generates another
> leaving the old one
> (half opened or whatever) still alive..
> So if you will click on submit button more than 10 times with a little
> interval -
> we will get ODBC error - "Database server connection limit exceeded"
> I tried to set in PHP config file
> odbc.max_persistent = 1
> but it still overgoes more than 1 connection to the same database, user
> What's wrong?
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php