Jump to content

How to update "domainstatus" for a product/service via SQL query?


KuJoe

Recommended Posts

I can't figure this out for the life of me. I have an external script that runs via a cronjob and I can get it to suspend the actual service and open a ticket but I want the script to change the service to "Suspended" in WHMCS so if the client logs in they'll see it suspended with a specific reason. I can update the suspendreason field but I can't change the domainstatus for some reason. I'm thinking it has something to do with the enum values but I don't know what that means and my searches haven't helped either.

 

Here's the code I'm trying to run:

$mysqli->query("UPDATE `tblhosting` SET domainstatus = 'Suspended' WHERE `id` = '". $id ."'");

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