On Mon, 04 Oct 2004 22:31:15 -0400, Gary Rachel <[EMAIL PROTECTED]> wrote:
> I've tried not using the mysql_close statement.  But that option doesn't
> select the new database, it seems to stay connected to the previous one,
> despite my specifying a new database to access.  Can I not access two
> databases within the same script?

I'm assuming that you're using localhost in both mysql_connect
statements.  You may want to try using the new_link option of the
mysql_connect function.  PHP might be trying to use your old (and
disconnected) link when you make your second connect call.  Have a
look at the function call docs for details on using that option.

http://us4.php.net/mysql_connect

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to