Jump to content

How to Server/Addon Module connected to WHMCS Database ?


Recommended Posts

Posted (edited)

Hello guys,

I'm working on custom module and i have created Server Module to test things out. Basically  i have created database outside of WHMCS  to visualize and test data and where i was pulling values to create client service.

image.png.abea24638625fd897171e45fa16eddf2.png

image.png.9bf9e75ee986a9da79252e60d7257952.png

 

So i got everything working as i wanted with the above example. 

 

With the following test code i have managed to create new table and input values in it. 

 Capsule::table('tblmhipsips')
            ->where('ipid', '=', $params["userid"])
            ->where('vpsid', '=', $vpsname)
            ->update(array(
                'ip' => $vpsip,
                'mac_addr' => $mac_addr,
                'note' => 'assigned',
            ));

Image

Now i want to build the same logic into WHMCS Addon Module where you could Add/Edit/Delete Values and Server Module should pull data from WHMCS Addon Database 

And here is where I'm stuck and i need guideline or small 2 value example on how to do this.

Any help is highly appreciated !!

Thanks

 

Edited by RstsTeam
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   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