Can't connect to a mySQL DB
- From: aalberani@xxxxxxxxx
- Date: Thu, 14 Feb 2008 09:02:00 -0800 (PST)
Hi everyone
I'm trying connecting to a mySQL DBm but I've some troubles.
The code is
<?php
echo "Connecting ... ";
$connection = mysql_connect("localhost", $usename, $password)
or die ("KO: " . mysql_error());
echo "OK";
....
When I execute, the php page just writes:
"Connecting ..."
and then the execution stops, without printing anything else.
The problem is not dipendent by the parameters, it happens the same
also if I write wrong parameters.
Can someone help me in order to fix the problem?
Tanks in advance for your replies.
.
- Follow-Ups:
- Re: Can't connect to a mySQL DB
- From: ZeldorBlat
- Re: Can't connect to a mySQL DB
- Prev by Date: Creating Dynamic Forms
- Next by Date: Re: stopping php & keeping php alive
- Previous by thread: Creating Dynamic Forms
- Next by thread: Re: Can't connect to a mySQL DB
- Index(es):
Relevant Pages
|
|