Connection to a db from localhost to another server with php -


If possible, is PHP possible to create a MySQL connection from a local host to another server? Thanks!

Yes it is possible. You must have a user name and password for the domain in which you want to connect.

  mysqli_connect ("www.domain.com", "username", "password", "database_name") or die ("error". Mysqli_error ());  

Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -