0

I'm trying to write php code to access my sql database.

pretty new at this and was wondering for my hostname and username and that, do i prefix the web address to the username and password or what is it?

I geta error saying my credentials are not correct.

Can I get some input from some of you guys please.

error msg is:

Warning: mysql_connect() [function.mysql-connect]: Access denied for user

2
Contributors
2
Replies
3
Views
6 Years
Discussion Span
Last Post by lovell_82
0

Are you trying to access localhost ? If so, did you create a database user in you cPanel ? Show your code (remove the username/password).

0

It's working now, contacted the Provider help which gave me the correct details

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.