Jump to content

Cpanel


jalaladdin

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...