Hi guys, I'm new here. I have a problem with connecting to my sql database. Everytime when I want to log in, I get this :

Warning: mysql_connect(): Access denied for user 'root'@'localhost' (using password: YES) in C:\xampp\htdocs\novi\funkcije.php on line 9

Warning: mysql_query() expects parameter 2 to be resource, boolean given in C:\xampp\htdocs\novi\funkcije.php on line 25
Access denied for user ''@'localhost' to database 'photosend'

Please help mee,
I would be very grateful.

are you sure you set the password correctly for this user? If it is default install, try with no password.


cek ur host or username or password again, or try to not to use password.

It means that you ar trying to access the database, and you are providing a password, where it is not needed.
Try removing the password first.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.