I want to connect 2 diffrent DB, but I get that error:
Warning: mysqli::mysqli() [mysqli.mysqli]: (28000/1045): Access denied for user '*username*'@'localhost' (using password: YES) in......
my code:
$mysqli2 = new mysqli('localhost',$db_user,$db_pass, $db_name);
$mysqli2 = new mysqli('localhost',$db_user2,$db_pass2, $db_name2);
And I try to excute queries like this:
$result=$mysqli->query("select ......
$result=$mysqli2->query("select ......
How can I fix this?