Hi,

Please check if you have put session_start() on script2.

Umesh.

-----Original Message-----
From: mukta telang [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 21, 2004 11:18 AM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
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

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to