I am trying to make a query on two different databases with php and mysql. You can see my approach bellow, but it does not work. Both the queries are being executed on the first database. Why does this happen?
mysql_connect(HOST,USER,PASSWORD);
mysql_select_db(DB_1);
mysql_query("some query");
mysql_select_db(DB_2);
mysql_query("some query");