Re: session and temporary tables 2

From: Date: Tue, 18 Jun 2002 10:42:03 +0000
Subject: Re: session and temporary tables 2
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-102677@lists.php.net to get a copy of this message
Use mysql_pconnect($hostname, $username, $password); Wilbert Enserink wrote:
Jason, this is a piece of code i include in every file. I thinbk this is the piece of code which kills my connection. do you have any tips for me how to maintain the connectoin open? thx Wilbert ---------------------------------------- session_start(); $global_dbh = mysql_connect($hostname, $username, $password); if (!$global_dbh) { mail(wilbert@pdd.nl","dbconnect", no connection posiible from $REMOTE_ADDR"); die("No database connection could be established") ; } mysql_select_db($db, $global_dbh); ---------------------------------- ------------------------- Pas de Deux Van Mierisstraat 25 2526 NM Den Haag tel 070 4450855 fax 070 4450852 http://www.pdd.nl info@pdd.nl -------------------------


« previous php.general (#102677) next »