Ideally you could use pconnect, then save the connection ID into a session.
Then just try and use the connection like that.

That _should_ work. But you may just want to use pconnect and not bother
with the rest...that might be just as good as what you are trying to do.


--
Plutarck
Should be working on something...
...but forgot what it was.


""Picard, Cyril"" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi all
> I use PHP to query a PostgreSQL database.
> Today I know how to query the database with a PHP script, but I have to
> establish a connection to the database in each script.
>
> Is there a way to get the following :
> connect.php : a script where the user enters its login and password, and
> connect to the DB by the submit button (submit button which action url is
> query.php).
> query.php : a script that performs a query using the connection from
> connect.php
>
> I know that I could send the login/password to the query.php to establish
> the connection ; but it is not what I would like (sometimes - often - the
> connection time is bigger than the query time itself !)
> Thanks for your help !
>
>
>
>
>
> --
> PHP General 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]
>



-- 
PHP General 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