2 database connections in one page...allowed??

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
pleigh
Forum Contributor
Posts: 445
Joined: Wed Jan 19, 2005 4:26 am

2 database connections in one page...allowed??

Post by pleigh »

hi there,

just like to know if 2 database connections in one page is allowed. i designed a page that will use the same part of the page in every page....used the include() function...the first connection was the profile .inc and the users profile be displayed.then i included another .inc file to display the inserting part of the database, this is my other connection.when i hit the submit button, an error occurred saying:
Access denied for user 'ODBC'@'localhost' (using password: NO)
hope u can help me.thanks
User avatar
n00b Saibot
DevNet Resident
Posts: 1452
Joined: Fri Dec 24, 2004 2:59 am
Location: Lucknow, UP, India
Contact:

Post by n00b Saibot »

are the connections made to same server or a diffrent one :?:
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Post by John Cartwright »

Maybe re-think your database structures and only use 1 database.
Post Reply