I hosted my site on web (using cpanel) and another part of my site is on localhost of my desktop.
What I want is when admin updates the data using web that has been updated on my localhost database. For that I want to access database of my desktop.
Here is my code so far:
$MasterHost="MY_IP";
$MasterDatabase="db_my_databse_name";
mysql_connect($MasterHost,"root","");
mysql_select_db($MasterDatabase);
When I run the page from web, I am getting the warning like below:
Warning: mysql_connect(): Can't connect to MySQL server on '59.88.162.240' (4) in /home/new12861/public_html/dekhnelab/dbUnique.php on line 4
Please chech db