Re: PHP-MySQL connection for particular module

From: Date: Tue, 17 Jun 2008 23:51:53 +0000
Subject: Re: PHP-MySQL connection for particular module
References: 1 2  Groups: php.db 
Request: Send a blank email to php-db+get-45079@lists.php.net to get a copy of this message
> It means that either your mysql conenction details are not correctly set or > the connection resource isn't accessible for your mysql functions. I suggest > you first try by replacing: > > $link = mysql_pconnect('localhost', 'root', 'testing'); > > into: > > mysql_pconnect('localhost', 'root', 'testing'); Why? How is that going to help fix the problem? Personally I'd say to *not* use persistent connections as it will cause you problems later. Use a normal connection: $link = mysql_connect($server, $user, $pass); -- Postgresql & php tutorials http://www.designmagick.com/

« previous php.db (#45079) next »