1
I have 2 different Mysql databases, I can make a query on one basis or another specifying which connection I will use so:
$result1 = mysql_query($sql1, $banco1);
$result2 = mysql_query($sql2, $banco2);
Now a problem has arisen, I need in the same query to do an INNER JOIN with different bank tables, is it possible? (something like this)
$sql0 = "SELECT * FROM tabela1_banco1
INNER JOIN id ON tabela2_banco2.id = tabela1_banco1.id_usuario";
$result0 = mysql_query($sql0, $banco1, $banco2);
Gives error, or shows no value?
– White
Error, it does not collect 2 banks: mysql_query() expects at Most 2 Parameters, 3 Given
– caiocafardo
@caiocafardo, the answer below solved the problem?
– rLinhares