title: PHP - Connect database remotely using IP address
body: <p>How can I connect to my remote database using ip address? I have this code but evetime I load my site I get an error Could not connect to MySQL: Can't connect to MySQL server on 'xxx.xx.xxx.xx:80'</p>
  
  <pre><code>define ('DB_USER', 'user');
  define ('DB_PASSWORD', 'password');
  define ('DB_HOST', 'xxx.xx.xxx.xx:80');
  define ('DB_NAME', 'databaseName'); 
  $dbc=mysql_connect(DB_HOST, DB_USER, DB_PASSWORD) 
      OR die ('Could not connect to MySQL: '.mysql_error()); @mysql_select_db (DB_NAME) 
      OR die ('Could not select the database" '.mysql_error());;
  </code></pre>