Fw: Help me with this someone

Fw: Help me with this someone

am 09.02.2009 22:33:25 von Wilson Osemeilu

--0-1511531638-1234215205=:61758
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable






i get the error:
Warning: mysql_pconnect() [function.mysql-pconnect]: Lost connection to MyS=
QL server during query in /home/www/broadwaysecure.biz.nf/Index.php on line=
9
Could not connect : Lost connection to MySQL server during query
=A0
=A0
I have done everything to connect to my database but its not working
this is my database information:
host: fdb1.biz.nf or 82.197.130.17 (pinged and working)
db name: 218708_accounts
pass: *******

the scrip is
# FileName=3D"Connection_php_mysql.htm"
# Type=3D"MYSQL"
# HTTP=3D"true"
$hostname_broadway =3D "82.197.130.17";
$database_broadway =3D "218708_accounts";
$username_broadway =3D "218708_accounts";
$password_broadway =3D "sanity";
$broadway =3D mysql_pconnect("82.197.130.17", "218708_accounts", "sanity", =
false, 2) or die("Could not connect : " . mysql_error());
?>
 
--0-1511531638-1234215205=:61758--

Re: Fw: Help me with this someone

am 09.02.2009 22:46:57 von dmagick

> 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/


--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php