databeses

Questions about the MySQL, PostgreSQL, and most other databases, as well as using it with PHP can be asked here.

Moderator: General Moderators

Post Reply
prasadharischandra
Forum Commoner
Posts: 57
Joined: Thu May 09, 2002 2:19 am
Location: sri lanka
Contact:

databeses

Post 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());
User avatar
mikeq
Forum Regular
Posts: 512
Joined: Fri May 03, 2002 3:33 am
Location: Edinburgh, Scotland

Post 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:
Post Reply