noahyamen Posted February 27, 2009 Share Posted February 27, 2009 So here's what I've got going on. I've created a contact form that both sends the contents to someone's inbox, and saves a record of it in a database table. The problem is that the site is hosted on someone else's server, but the database is hosted on OURS. So far, all the database work I've done has been on the localhost. So what I need to know is: How do I setup, or what do I need to setup, in order to allow permission for the contact form from another server to save into my database on my server? What does the php connection settings look like in this case? Quote Link to comment https://forums.phpfreaks.com/topic/147193-need-to-connect-to-mysql-database-from-separate-server/ Share on other sites More sharing options...
fenway Posted February 28, 2009 Share Posted February 28, 2009 There's really no different on the client side -- just point to a different host name -- but you need to make sure that the remote host allows remote connections. Quote Link to comment https://forums.phpfreaks.com/topic/147193-need-to-connect-to-mysql-database-from-separate-server/#findComment-773306 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.