Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- Can't connect to a mySQL DB
February 14, 2008, 5:02 pm
rate this thread
I'm trying connecting to a mySQL DBm but I've some troubles.
The code is
echo "Connecting ... ";
$connection = mysql_connect("localhost", $usename, $password)
or die ("KO: " . mysql_error());
When I execute, the php page just writes:
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.