bentotech Posted February 2, 2012 Share Posted February 2, 2012 '31.100.x.x is not allowed to connect to this MySQL server in /home/member/insert.php on line 13 I asked a question about this a few weeks ago, and someone solved it saying that the server was blocking connections. Its confusing the hell out of me. I did as they said, and contacted my admin. they told me to fork over money, and it would be solved. I am a broke student, and dont have the cash anyway. What gets me is they said I had to be a paid member to have a sql database and connect to it with scripts on the server. But I can run a phpBB3 forum. it runs sql. I know it does. WTF? I know they are just trying to get money from me, but no matter how much I try i cant figure out how the forums connect. mine is $username="a162_bento"; $password="Password123"; $database="a162_siteDB"; $localhost="host.com"; mysql_connect($localhost,$user,$password) I wish could figure out how xampp worked. If someone has time to help me I would really appreciate it. Im trying really hard but getting kick every time i get on the stage. Quote Link to comment https://forums.phpfreaks.com/topic/256233-im-super-confused/ Share on other sites More sharing options...
Pikachu2000 Posted February 2, 2012 Share Posted February 2, 2012 If the forums, or other scripts are hosted on their servers, and they allow local connections, then of course it will work. If they do not allow external connections to the DB servers, and you try to connect directly from outside their local network, it will fail. Quote Link to comment https://forums.phpfreaks.com/topic/256233-im-super-confused/#findComment-1313589 Share on other sites More sharing options...
bentotech Posted February 4, 2012 Author Share Posted February 4, 2012 my scripts are on the same server. im about to use the same database and forum. if i do that,with the forum db is there anything tricky i need to know about? Quote Link to comment https://forums.phpfreaks.com/topic/256233-im-super-confused/#findComment-1314381 Share on other sites More sharing options...
Pikachu2000 Posted February 4, 2012 Share Posted February 4, 2012 If they're on the same server, chances are that you need to use localhost as the db server hostname. I'll bet the service provider either has an FAQ section, or their tech support can tell you for sure, though. Quote Link to comment https://forums.phpfreaks.com/topic/256233-im-super-confused/#findComment-1314425 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.