|
Posted by Erwin Moller on 08/10/06 08:00
ido wrote:
>
> Fairul Izham wrote:
>> Hi experts,
>>
>> Need some opinion,
>>
>> in my script, I create 3 database connection looks like this
>>
>> $db[1] = mysql_connect($server2, $username2, $password2, TRUE) or
>> die("Server ".$server2." not found");
>> mysql_select_db($database2,$db[1]) or die("Database ".$database2." not
>> found");
>>
>> $db[2] = mysql_connect($server3, $username3, $password3, TRUE) or
>> die("Server ".$server3." not found");
>> mysql_select_db($database3,$db[2]) or die("Database ".$database3." not
>> found");
>>
>> $db[3] = mysql_connect($server4, $username4, $password4, TRUE) or
>> die("Server ".$server4." not found");
>> mysql_select_db($database4,$db[3]) or die("Database ".$database4." not
>> found");
>>
>> it is nicely deployed on busy webserver?
>
> i thought adodb can be a good solution !
Yes, ADODB is a great package. I use it all the time.
But it makes no difference regarding the number of databaseconnections.
ADODB must make 3 seperate connections too internally.
(You can check the code yourself by opening the appropriate included files
yourself, it is all plain PHP.)
But yes: ADODB is good to mention everywhere. :-)
Regards,
Erwin Moller
Navigation:
[Reply to this message]
|