Page 1 of 1

databeses

Posted: Fri May 17, 2002 5:00 am
by prasadharischandra
i want to link 3 database in one page but there is error occured
Table 'test.main_info' doesn't exist
HELP me
coding is
$host='localhost';
$user='root';
$pass='';
$db1='test';
$db3='test2';

$connection=mysql_connect($host,$user, $pass);

$db=mysql_select_db($db3, $connection);
$db1=mysql_select_db($db1, $connection);

$query=mysql_query("select * from testid") or die(mysql_error());

$query1=mysql_query("select * from main_info") or die(mysql_error());

Posted: Fri May 17, 2002 7:58 am
by mikeq
Hi prasadharischandra,

Can you make sure you post your questions in 1 place only. If it is a database question then ask it here, not in PHP also.

You will get the same amount of response by posting it once.#

:wink: