I'm developing an application, in which two tables of a database are connected but not the third. (This is on server. They are working fine on my local machine.)

```
 1. Warning: mysql_connect() [function.mysql-connect]: [2002] No
    connection could be made because the target machine actively (trying
    to connect via tcp://localhost:3306) in D:\Hosting.. on line 5
 2. Warning: mysql_connect() [function.mysql-connect]: No connection could be made because the target machine actively refused it. in D:\Hosting.. on line 5

```

At an earlier stage, I connected to the two tables from the same database successfully, so I've checked the physical location of each table of the database. No wonder all are physically resting at the same place in the database.

Please help me to understand the problem.

**EDIT :**

```
//Page1 has something like:
$conid=mysql_connect("dxxs.db.7xx7.hostedresource.com","dxxs","Kxx3") or die();
mysql_select_db("dxxs",$conid) or die();
mysql_query(“some basic 4-5 queries depending on user’s interaction with table1”);
mysql_close($conid);
//redirection to page2 from there to page3
$conid=mysql_connect("dxxs.db.7xx7.hostedresource.com","dxxs","Kxx3") or die();
mysql_select_db("dxxs",$conid) or die();
mysql_query(“some basic 4-5 queries depending on user’s interaction with table2”);
mysql_close($conid);
//some redirection to page4
$conid=mysql_connect("dxxs.db.7xx7.hostedresource.com","dxxs","Kxx3") or die();
mysql_select_db("dxxs",$conid) or die();
mysql_query(“some basic 4-5 queries depending on user’s interaction with table3”);
mysql_close($conid);

```

Now my problem is when connecting to table 3, the server is throwing an *error as 
stated above*

Where in line 5, MySQL\_connect is written. Please help me to understand why table 3 is not getting connected whereas table 1 & table 2 are able to connect. All are resting at the same database on the server.