"how to connect multiple database,servers in mysql and query from both tables of each other?" Code Answer

3

according to the php docs: http://il2.php.net/manual/en/function.mysql-query.php

"if the link identifier is not specified, the last link opened by mysql_connect() is assumed."

so in this case you're only retrieving data from $dbh2.

i don't think it's possible to do what you are trying to do with one query. you should merge the results after you get them.

By Zyie on September 17 2022

Answers related to “how to connect multiple database,servers in mysql and query from both tables of each other?”

Only authorized users can answer the Search term. Please sign in first, or register a free account.