I am new to PHP, I am trying to implement network communication with mysql database which I made through phpmyadmin over my Bluehost account. Now I have written the following php script to check whether I can connect but I am not able to connect:
<?php
$mysql_host='localhost';
$mysql_user='xxx';
$mysql_pass ='xxx';
mysql_connect ('localhost', '$mysql_user', '$mysql_pass')
or die ('I cannot connect to the database.');
//echo 'hello';
?>