Re: mysql_connect

From: Date: Wed, 04 Sep 2002 02:30:45 +0000
Subject: Re: mysql_connect
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-21550@lists.php.net to get a copy of this message
try this. <?php $sqlhost = "localhost"; $sqluser = "root"; $sqlpasswd = "password"; $sqldatabase = "test"; //using pconnect to stay connect all the time to //close the connect use mysql_close($link); $link = mysql_pconnect($sqlhost,$sqluser,$sqlpasswd); mysql_select_db($sqldatabase); ?> ----- Original Message ----- From: "Bryan McLemore" <paradox@ipstudios.net> Newsgroups: php.db To: "PHP LIST" <php-db@lists.php.net> Sent: Tuesday, September 03, 2002 9:27 PM Subject: mysql_connect I'm trying to connect using the sample code in the php documentation. IT however dies every time. If someone could please help me? Thanks. Bryan

« previous php.db (#21550) next »