$handle_db1 = mysql_connect(hostname_and_port,user,password);
$handle_db2 = mysql_connect(hostname_and_port,user,password);
mysql_select_db("db1",$handle_db1);
mysql_select_db("db2",$handle_db2);
$query1 = "select * from one";
$query2 = "select * from two";
mysql_query($query1,$handle_db1);
mysql_query($query2,$handle_db2);
?>
No comments:
Post a Comment