I use this to connect to my local mysql server:
<?
$host = "localhost";
$user = "root";
$pass = "";
$db1 = "mydb";
$db = mysql_connect($host,$user,$pass);
mysql_select_db($db1,$db);
?>
But, I want to connect to a remote mysql server instead. I mean that site will be on the same server, but I'll connect to another mysql server. How can I do this?
I'm on Ubuntu.