[php]<?php
$username = “homedirectory_spin”;
$password = "qwer1234 ";
$hostname = “localhost”;
//connection to the database
$dbhandle = mysql_connect($hostname, $username, $password)
or die(“Unable to connect to MySQL”);
echo “Connected to MySQL
”;
?>[/php]
Why does this return a 500 error? I am trying to connect to the database which I already created along with a user using phpMyadmin
Any help appreciated!