session and temporary tables 2
| From: | Wilbert Enserink | Date: | Tue, 18 Jun 2002 09:50:46 +0000 |
| Subject: | session and temporary tables 2 | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-102671@lists.php.net to get a copy of this message | ||
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
-------------------------