| Posted by David on 11/12/06 19:00 
"Gordon Burditt" <gordonb.n4bid@burditt.org> wrote in message news:12lcrqbjv231v7a@corp.supernews.com...
 >>    I'm having problems attempting to access two databases from the same
 >> php
 >>script. Both databases are on the same server. Basically, I need to open
 >>db1, then open db2, close db2 and then return to using db1 as the default.
 >>I
 >
 > Don't use a database "as a default".  Use it explicitly:  pass the
 > appropriate connection handle to mysql_query().
 
 Unfortunately, this is not very convenient. The access to the 2nd database
 is a small addition to a large existing system that uses the 1st database. I
 don't really want to go through all the php code and change everything.
 Therefore, I really need a solution based on a default database that I can
 control. Why doesn't mysql_select_db() do this correctly?.
 
 Dave
 [Back to original message] |