how to do connectivity of 2 dbs in PHP script?
Answers were Sorted based on User's Feedback
Answer / lt
If you are trying to open multiple, separate MySQL
connections with the same MySQL user, password, and
hostname, you must set $new_link = TRUE to prevent
mysql_connect from using an existing connection.
The workaround is to require that the second MySQL
connection is new:
$db1 = mysql_connect($dbhost, $dbuser, $dbpass);
$rv = mysql_select_db($dbname1, $db1);
$db2 = mysql_connect($dbhost, $dbuser, $dbpass, TRUE);
$rv = mysql_select_db($dbname2, $db2);
Source: http://jp2.php.net/manual/en/function.mysql-connect.php
Message from: arithmetric at gmail dot com
26-Mar-2008 03:59
| Is This Answer Correct ? | 16 Yes | 0 No |
i want to store retrieved data from database into an array list with limit.And display the data from that array list.have any answer for this?
What is difference between count or sizeof function in php?
What are new features in php 7?
How to get total number of elements used in array?
Is age an interval or ratio?
Why is used in php?
How to call javascript function in php without any event?
How do I sort numbers in php?
What is super keyword in c++?
What does php do?
how do we can copy of the content of a web page with the help og the URL and display them onto any other page
What is serialization / object serialization ?