Jump to content

Cpanel


jalaladdin
 Share

Recommended Posts

Obviously, you have to use your current database user:

mysql_connect("localhost","m_mi","1234abcd");

The server might not even be localhost. Look at your Cpanel to see what the name of the SQL server is.

Link to comment
Share on other sites

You need to use your webhost username and password in the mysql_connect() command. Also make sure that the SQL server is correct. Check your web host for details.

mysql_connect('sql.mywebhost.com','myusername','mypassword');

Link to comment
Share on other sites

... well, obviously it isn't, since you don't seem to be able to log in correctly. What does your code look like now?

Link to comment
Share on other sites

  • 3 weeks later...

When you set up your website on a server you used a username and a password. Place them in your code where indicated below. $con = mysql_connect("localhost","username","password");

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...