Jump to content

count active hosting


panacheweb

Recommended Posts

  • 4 weeks later...

Hello,

          You might have solved this already. Anyway, from what I understood you need to know number of active hosting products. Here is a way you can do that :

You can write a query like this :  $Data = Capsule::table('tblhosting')->where('domainstatus', '=', ''Active')->count(); You will get the number you required. Please clear me if this is not what you meant.

 

Thank you

Link to comment
Share on other sites

  • 2 weeks later...
On 10/3/2017 at 5:55 AM, Vivek Nair said:

Hello,

          You might have solved this already. Anyway, from what I understood you need to know number of active hosting products. Here is a way you can do that :

You can write a query like this :  $Data = Capsule::table('tblhosting')->where('domainstatus', '=', ''Active')->count(); You will get the number you required. Please clear me if this is not what you meant.

 

Thank you

does that include the specifics for a product ID? 

Link to comment
Share on other sites

8 hours ago, panacheweb said:

does that include the specifics for a product ID? 

no - it would just give you a total number of all products that are active...

if you wanted a total active number for a specific product...

$Data = Capsule::table('tblhosting')
		->where('packageid','1')
		->where('domainstatus','Active')
		->count();

 

Link to comment
Share on other sites

  • 3 years later...

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