Jump to content
  • 0

WHMCS API / database and SolusVM


gerwim

Question

Hi there,

 

Currently we have our own billing system and want to switch to WHMCS for various reasons, however one thing which still bothers me is that we have an in-house developed rDNS changer and backup manager. This is done through our current control panel and grab the virtual server id from the database (this ID is inserted into the database upon creating the virtual private server by SolusVM).

 

How can we retrieve the virtual server ID's from a specific client (by client's email address if possible). This information will probably be stored into WHMCS' database, but as I don't know hence my question.

 

Thanks in advance!

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

I know the answer. Used the tables "tblhosting" and "tblcustomfieldsvalues".

 

Query:

SELECT * FROM tblhosting as h LEFT JOIN tblcustomfieldsvalues AS cfv ON h.id = cfv.relid WHERE userid='" . (int)$_SESSION['uid'] . "' AND cfv.fieldid = '1' AND h.domainstatus='Active'

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
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