In message <[EMAIL PROTECTED]>, Khan
<[EMAIL PROTECTED]> writes
>  Problem:- Now when i call the second 'mysql_select_db', function, the query 
>failed to recognize the tables of the first database connection.
>   
>  Below is the actual code:
>  
>  $dbhost1 = '192.168.1.11';
>$dbuser1 = 'usman';
>$dbpass1 = 'ti123';
>$dbname1 = 'Inventory';
>  $conn1 = mysql_connect($dbhost1, $dbuser1, $dbpass1); 
>mysql_select_db($dbname1, $conn1);

I notice that you don't check if you are connected...

You should ensure that you get an error message if the database does not
connect properly.

-- 
Pete Clark

Sunny Andalucia
http://www.hotcosta.com/comm_1.htm

Reply via email to