yrochon Posted July 27, 2011 Share Posted July 27, 2011 I am connecting to another MySQL database (creating another connection) but when I try to query the WHMCS database again, it uses the last used connection. To fix this, I would need the link identifier that WHMCS got when creating it's connection. How could I get this information? 0 Quote Link to comment Share on other sites More sharing options...
thehost5968 Posted July 27, 2011 Share Posted July 27, 2011 Could you not just use the code that closes the mysql before then open the new one for your MYsql connection then close that connection then WHMCS would auto open it's next connection. 0 Quote Link to comment Share on other sites More sharing options...
thehost5968 Posted July 27, 2011 Share Posted July 27, 2011 (edited) Try $whmcsmysql else mysql_close() closes the non-persistent connection to the MySQL server that's associated with the specified link identifier. If link_identifier isn't specified, the last opened link is used. Edited July 27, 2011 by thehost5968 0 Quote Link to comment Share on other sites More sharing options...
yrochon Posted July 28, 2011 Author Share Posted July 28, 2011 Try $whmcsmysql else Yes, $whmcsmysql seems to be the MySQL connection link for the default WHMCS db connection. Thanks! 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.