This is the first time I work with PHP.
My sites are hosted on the webserver with the url http://my_school_webserver/~myaccount/
The mysql server database is located on my own PC (xxx.xxx.xx.xx).
I write a small task to access the sql database like this:
or die ("Unable to connect to database: ". mysql_error());
or die ("Unable to select database");
then I include this function to other PHP program that need to connect to the db.
When I access to the site, the error is:
"Can't not connect to MySQL server on 'xxx.xxx.xx.xx' (4) "
I also try the command without the port 3306, the error is the same.
Can you help me with this error !