Reputation: 551
I have a LAMP server hosted on Amzaon AWS and using php to connect and insert values to a MySQL DB on that remote server. (https://studio.hamlethub.com/belocal/final.php)
When I access this form from my office, everything works perfectly. However, from my home, I am receiving an error: No connection (#2002).
I am able to access phpmyadmin successfully from both places, both IP's. I checked the error log and do not see any issues.
What could it be inside of my php that could prevent a successful connection based on the local IP, when I am not using a local server?
Ken
Upvotes: 0
Views: 40
Reputation: 551
There was an IP in the connection request. I am using PHP form builder which has a setting in the db-connect.php file which needed to be customized.
Upvotes: 1