PHP MYSQL Connection string

$username = “your_name”;
$password = “your_password”;
$hostname = “localhost”;

//connection to the database
$dbhandle = mysql_connect($hostname, $username, $password)
or die(“Unable to connect to MySQL”);
echo “Connected to MySQL
“;
?>

This entry was posted in MYSQL, PHP development, Software development and tagged , . Bookmark the permalink.