Jump to content
  • 0

Connecting to remote database


BillDjango

Question

I'm using WHMCS and WBTeamPro as a project management tool.   Our old project management tool isn't exactly friendly for exporting and importing, so instead of doing that,  i'm writing a module that adds a tab to each clients profile where you can click the link to view the past projects, tasks and time logs directly from that systems database. 

I swore off PHP years ago in favor of Python, so i'm a bit out of practice.     In my module config i'm collecting the usual DB connection information, and then trying to pass it to mysqli to connect to the remote database from within the module/lib/Admin/controller.php file.     

For some reason I get an error:  "Error: Class 'WHMCS\\Module\\Addon\\activecollabdisplay\\Admin\\mysqli' not found in /home/www/....."

At first I thought maybe mysqli isn't installed.  So I took at look at the php info and it shows it is enabled. 

Any hints or suggestions on how I can make this happen?

 

Thanks!

Link to comment
Share on other sites

1 answer to this question

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.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated