You are here: Re: Multiple db access from php « PHP Programming Language « IT news, forums, messages
Re: Multiple db access from php

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

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация