Can someone help me out plz with an error that im getting in trying to connect to mysql database?!!!
This is the error i get:
Warning: mysql_connect(): Access denied for user: 'me@127.0.0.1' (Using password: YES) in C:\Inetpub\wwwroot\disso\add.php on line 18
Could not connect !
Ive checked the user name, password, and the set up is also correct. this is my file:
<?php
$db="db";
$db_h = "localhost";
$db_u = "me";
$db_p = "hello";
?>
what am i doing wrong
The line 18 of the code it refers to is the following:
<?
include 'db_param.php';
include 'common.php';
include 'header.inc.php';
?>
<html>
<head>
<basefont face="Verdana" size="1">
</head>
<body bgcolor=white>
<?
if (!isset($submit))
{
this is line 18 $link = mysql_connect($db_h, $db_u, $db_p) or exit ("Could not connect !");
mysql_select_db($db) or exit ("Could not connect to database") or exit ("Could not connect to database") ;
?>
This is only part of the code.