+ 3
Hi , Every body can help me in php?
i need a php programmer
7 Answers
+ 4
This type of error occur when you have pass wrong arguments to function. please show your code. Don't need to show your user name and password. Correct them yourself.
+ 3
when i coding for server (work with sql) , i see this error :
Warning: mysqli_connect(): (28000/1045): Access denied for user ...
+ 3
ok
Thanks
+ 2
I think you have mistake while declare username & password.
Make sure your username & password is true.
+ 1
why do do you need a php programmer?
+ 1
Hello There .According to the error msg .The problems is that your database username or password doesn't match when you try to connect in the database throw php script ..you have to put same username or password in your php script
here is simple example
in phpmyadmin
database username = root
password = password
by default username is root in phpmyadmin and password is null
your php code goes here
$hostname = "localhost";
$username = "root";
$password = "password"; //because we set password in db
$dbname ="test";
$dbconnect = mysqli_connect($hostname , $username, $password,$dbname);
//check the error
if (mysqli_connect_errno()) {
echo "Failed to connect to MySQL: " . mysqli_connect_error();
}
0
Hi .-.