RE: [PHP] session and mysql connection identifier
| From: | Umesh Deshmukh | Date: | Wed, 21 Jul 2004 05:57:53 +0000 |
| Subject: | RE: [PHP] session and mysql connection identifier | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-191269@lists.php.net to get a copy of this message | ||
Hi,
Please check if you have put session_start() on script2.
Umesh.
-----Original Message-----
From: mukta telang [mailto:mukta_telang@yahoo.com]
Sent: Wednesday, July 21, 2004 11:18 AM
To: php-general@lists.php.net
Cc: mukta_telang@yahoo.com
Subject: [PHP] session and mysql connection identifier
Hi,
I want to use mysql persistent connection to connect
to mysql and use the connection identifier or handle
in subsequent pages/scripts. So in script1.php I have
session_start();
session_register('conn');
HTTP_SESSION_VARS['conn']=mysql_pconnect(...);
and in script2.php I have,
echo $conn;
and I always get "1" as output and not Resource#.. as
expected..
Please help,
regards,
Mukta
__________________________________
Do you Yahoo!?
Vote for the stars of Yahoo!'s next ad campaign!
http://advision.webevents.yahoo.com/yahoo/votelifeengine/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php