You are here: Two MySQL connections in one script not working as expected « PHP « IT news, forums, messages
Two MySQL connections in one script not working as expected

Posted by Charles Kline on 09/27/05 21:25

Hi all,

I have a script that needs to update data in two databases. My db
connections are both in class files that I created to execute the
various connections and queries.

What is happening is that the second database connection does not
seem to work. The error I get is that it seems the second query is
being executed against the first database connection - does that make
sense? So I get an error that the database_name.table_name does not
exist, which is true, but the query is getting executed against the
wrong database name.

Any ideas?

Thanks,
Charles

 

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

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