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([EMAIL PROTECTED]","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 >[EMAIL PROTECTED] >------------------------- > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php