|
|
PHP - MySQL Connection String
You can use the MYSQL connection string for PHP as shown below. Please be sure to replace the database username (dbuser), password, and database name (dbname). The hostname should be twdhosti.accountsupportmysql.com.
$username = "dbuser";
$password = "password";
$hostname = "twdhosti.accountsupportmysql.com";
$dbh = mysql_connect($hostname, $username, $password) or die("Unable to connect to MySQL");
mysql_select_db ("dbname");
|
|