Using php i wants to make a join query across 2 database.
This is my first connection.
$conn = mysql_connect(\'localhost\',\'root1\',\'pass1\');
@my
The mysql module in the php environment doesn't support multiple database connections, and, besides, this module exists only for retrocompatibily reasons. You shouldn't use it.
mysqli and PDO are better, more complete (these support transaction and prepared statement, "mysql" don't), and PDO support also the multi-db query.
The old mysql is procedural only, mysqli can be used in procedural and OO programming, PDO is OOP.