How to connect mysql with difference server
If my all file is in 192.168.0.100 and mysql server is 192.168.0.200
I got Error "sorry, could not load your data, please try again later" when try it.
If bote all file and database is in same server , It run correct.
<?php
class DBConnection{
function getConnection(){
//localhost/amarokuser/amarokpasswd
mysql_connect("192.168.0.200","root","") OR
die("Could not connect: " . mysql_error());
//amarokdb
mysql_select_db("jqcalendar") OR
die("Could not select database: " . mysql_error());
}
}
?>