Stevebc Posted December 14, 2014 Share Posted December 14, 2014 Hi!, Im using an "AcceptOrder" hook and at the moment im able to get client username (firstname field) from "orderid" passed in this hook. What i want to achieve is setting the corresponding username to a private group inside my forum software. In order to do this i need to connect to my forum database (im using one for Whmcs and a separate one for forum) Tried using mysql_connect and mysqli to connect to my forum database: everything fails! Im using same codes in other scripts and works fine Perhaps creating a second connection inside an hook isnt allowed? Thanks 0 Quote Link to comment Share on other sites More sharing options...
Kian Posted December 14, 2014 Share Posted December 14, 2014 Hi You could even connect to 100 different database in your hook file. Are you sure that you are using the right syntax and that the database of your forum is on localhost? In case your forum is running on a different server probably you can't connect to database since most of times remote access disabled for security reasons. 0 Quote Link to comment Share on other sites More sharing options...
sentq Posted December 15, 2014 Share Posted December 15, 2014 remote access disabled, but it can be allowed for specific IPs 0 Quote Link to comment 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.