session and mysql connection identifier

From: Date: Wed, 21 Jul 2004 05:47:43 +0000
Subject: session and mysql connection identifier
Groups: php.general 
Request: Send a blank email to php-general+get-191268@lists.php.net to get a copy of this message
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/

« previous php.general (#191268) next »