Re: [PHP-DB] Fw: Help me with this someone

[email protected] (Chris)
Newsgroups php.db
Message-ID <[email protected]>
> Warning: mysql_pconnect() [function.mysql-pconnect]: Lost connection to MySQL server during query in /home/www/broadwaysecure.biz.nf/Index.php on line 9
> Could not connect : Lost connection to MySQL server during query

What's line 9? You haven't sent 9 lines of code.

Also I suggest changing your mysql password, you've just broadcast it to 
the world. The mailing list is automatically archived in several places 
which all search engines have access to.

> $broadway = mysql_pconnect("82.197.130.17", "218708_accounts", "sanity", false, 2) or die("Could not connect : " . mysql_error());

This is the wrong syntax for pconnect. RTFM:

http://au.php.net/mysql_pconnect

mysql_pconnect  ([ string $server=ini_get("mysql.default_host")  [, 
string $username=ini_get("mysql.default_user")  [, string 
$password=ini_get("mysql.default_password")  [, int $client_flags  ]]]] )

Get rid of the "FALSE" argument.

-- 
Postgresql & php tutorials
http://www.designmagick.com/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.