Use persistent connections it's a matter of performance of your script.
When you use persistent connections the next call to mysql_pconnect will
catch a opened connection if available. The mysql_connect command always
open a new connection which slower than get an opened one. Anyway you can't
use the connection_id in other page. May be using PHP4 Sessions.
HTH.
Jayme.
-----Mensagem Original-----
De: andrie <[EMAIL PROTECTED]>
Para: <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Enviada em: sexta-feira, 23 de março de 2001 20:38
Assunto: [PHP-DB] connection id
> Hello php mania,
> i was connecting into mysql using mysql_connect, and i just saved
> the return value from this funtion. now i want to use this connection
> id in the other page so i dont have to connect into mysql again.
> is it possible for me to do that ?
> anybody could tell me the different between persistence connection
> or not ? and how the implementation ?
>
> TIA
>
>
> --
> Best regards,
> andrie mailto:[EMAIL PROTECTED]
>
>
>
> --
> PHP Database 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]