I was just wondering if it is valid to call mysql_pconnect multiple times in one php page? Also, if it is possible do I have to somehow close my last mysql handle or something? Basically is the following code ok? Or lacking some other steps?
mysql_pconnect("ip:3306", "user", "pass") or die(mysql_error());
mysql_select_db("Test") or die(mysql_error());
//do some SQL query
mysql_pconnect("ip2:3306", "user", "pass") or die(mysql_error());
mysql_select_db("Test") or die(mysql_error());
//do another SQL query