Jump to content
Larry Ullman's Book Forums

Can You Run Two Databases Simultaneously?


Recommended Posts

  • 5 weeks later...

$con1 = mysql_connect("localhost","root","");

if (!$con1)

{

die('Could not connect: ' . mysql_error());

}

$con2 = mysql_connect("localhost","root","");

if (!$con2)

{

die('Could not connect: ' . mysql_error());

}

// then connect into 2 databases

mysql_select_db('my_database',$con1);

mysql_select_db('oops', $con2);

Compleate reference that I got is from:-http://wintekweb.blogspot.com/2012/09/run-two-databases-simultaneously.html

Link to comment
Share on other sites

 Share

×
×
  • Create New...