I’m curious to know what functional differences there are between using mysql_select_db($db) and mysql_query("USE $db").
I’m interested in this because it may well solve a long running issue I have with MySQL replication over different databases.
Are both OK, or should the second one be avoided for some reason?
Thanks
p.s. please can we steer clear of discussion about the mysql_* functions being deprecated.
As seen on PHP.net, you can use either of them. A user commented regarding the same too:
And in later comments, no one is rejecting the idea, I’m assuming that there will be no problems.