Connect Database from another server in mysql and php I use this :
<?php
$db = mysql_connect("mysite.com", "theusername", "proud");
mysql_select_db("theotherserverDB",$db);
?>
need to Fix?
Connect Database from another server in mysql and php I use this :
<?php
$db = mysql_connect("mysite.com", "theusername", "proud");
mysql_select_db("theotherserverDB",$db);
?>
need to Fix?
<?php
mysql_connect("mysite.com:3306", "admin", "1admin") or die(mysql_error());
echo "Connected to MySQL<br />";
?>
Just run it and see if it works.