Jump to content

Very Basic Connection Question (very newbie)


dlyles

Recommended Posts

Let me say that I am an extreme newbie.  I usually program using ASP, however I'm on a Linux server at work now, so...

I'm having a basic problem connecting to the data.  The password I'm using connects me to phpmyadmin just fine.  However, trying to connect using the below code gives me an access denied error.

$user="root";
$password="****";


$dbh=mysql_connect("localhost", $user, $password);

I stripped everything so I could get to the root of the problem.  What is the root of the problem?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.