I created a database table using phpmyadmin and MySQL. Im trying to establish a connection to my database using a PHP script. Ive searched all alone and have found the right syntax and script to establish a simple connection. When i run the php file on my live server, the browser simply displays the actual code of the php file rather than a error message or any output.
Here is my php script that i am working with.
<?php
$username = "*******";
$password = "********";
$hostname = "*********";
//connection to the database
$dbhandle = mysql_connect($hostname, $username, $password)
or die("Unable to connect to MySQL");
echo "Connected to MySQL <br>";
?>
Any help or direction as to what might be causing me to have absolutely no output?