Page 1 of 1
quick DB connect question
Posted: Sat Oct 17, 2009 7:51 pm
by Torniquet
If i want to connect to a database on site A. and use / display info on site B
what needs to be done?
just change $hostname from localhost to the websites IP / db addy?
ta xxx
Re: quick DB connect question
Posted: Sat Oct 17, 2009 11:30 pm
by hallsofvallhalla
i am a little confused on the question, but the site has nothing to do with the database. As long as you know the address and the user and pass you can connect to any database.
Re: quick DB connect question
Posted: Wed Oct 28, 2009 6:37 pm
by Chris
Well if the database is hosted on server A, and you want to connect to it from server B. Then you would need to connect to the ip of server A.
Re: quick DB connect question
Posted: Wed Oct 28, 2009 8:50 pm
by hallsofvallhalla
well basically alter your connect.php to match server b