There is a new problem which i m facing.
The question is that.
How to Connect two databases on two different servers using php ?
I hope it possible. if is it possible please someone tell me how will i do......
You connect to both the same way - just use a different field to hold the connection pointer.
The four parameters to pass to set up the connection are userid, password, server and database. You might also need to make sure that the appropriate port is open when connecting to a database on a server other than localhost.
Can you tell me which parameters is pass in server and how.
Either a domain name or an ip address (without any protocol on the front. You may need to add the mysql port number on the end after a colon.
For example if the database is on the same server as the PHP then use either 'localhost' or '127.0.0.1' or your domain name. For a remote server use the ip address of that server or the domain name eg. 'example.com'
can we axis server database from localhost using this method and how i got the ip address of domain name.
This topic is now closed. New replies are no longer allowed.