The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
|
#1
|
|||
|
|||
((( Two Simultaneous Database Connections )))
I am trying to access two databases on the same php page - one that I created, and the other being the vBulletin database.
Code:
// On Server Development $host = 'localhost'; $user = 'user"; $pass = 'passwerd'; // Define the databases $user_database = 'forum'; $cust_database = 'custom_database'; // Establish the connections $user_con = mysql_connect($host,$user,$pass) or die(mysql_error()); $cust_con = mysql_connect($host,$user,$pass) or die(mysql_error()); // Connect to the databases mysql_select_db($user_database, $user_con); mysql_select_db($cust_database, $cust_con); // Close the connections mysql_close($user_con); mysql_close($cust_con); // Demonstrate that the connections didn't throw an exception phpinfo(); It's not working and there seems to be some mechanism preventing it from working. Why can I not have two simultaneous connections? Is there some prohibition against having two simultaneous database connections with MYSQL? If you require additional information, please let me know. Thank you, Jack |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|