Home News Contact Us Forum About Us Demos Products F.A.Q.
Shopping Cart
You currently have 0 items in your cart.


Recent Events
  • 31/12/2023 New Year SALE

    We are glad to announce New Year SALE. 25% discount for all our extensions. Use NY24 coupon code. Hurry up the discount is valid till 7 January.

  • 21/11/2023 BLACK FRIDAY 23 is coming

    BIG SALE, 35% discount for all our extensions. Use BF23 coupon code. Hurry up the discount is valid till 27 November.


2Checkout.com, Inc. is an authorized retailer of goods and services provided by ARI Soft. 2CheckOut




Follow us on twitter



Welcome, Guest
Please Login or Register.    Lost Password?

How to display SQL COUNT results
(1 viewing) (1) Guest
Go to bottomPage: 1
TOPIC: How to display SQL COUNT results
#12317
How to display SQL COUNT results 13 Years, 8 Months ago Karma: 0
Hello,

I am trying to produce some summary tables for my site and its membership. I need to have a table for example that displays the number of members at each membership level. To do thi2 I need to run four queries like this one:

SELECT COUNT(*) FROM `this_table` WHERE plan_id=1 and status='A'

How can I integrate four of these results (one for each member level) into a table for display?

Thank you,
Sid.
The administrator has disabled public write access.
 
#12353
Re:How to display SQL COUNT results 13 Years, 8 Months ago Karma: 0
Hi,

I made some progress on this but still have one thing I can't figure out. I am now producing a table that gives the totals for each level of membership on my site. The final step is to show a grand total for all levels. I would appreciate any help to do this, the only way I see is to have a second table that shows this one row total. Is there a better way?

I am loving this set of products you have, most impressive!
Sid.
The administrator has disabled public write access.
 
#12413
Re:How to display SQL COUNT results 13 Years, 8 Months ago Karma: 760
Hello,

Sorry for the delay. If you want to use table with sorting feature, total count row should be added as separate control (table), in other case total count row will be sorted with other rows.

Regards,
ARI Soft
The administrator has disabled public write access.
 
#12455
Re:How to display SQL COUNT results 13 Years, 8 Months ago Karma: 0
Thank you I made a separate table for the total count.
Sid.
The administrator has disabled public write access.
 
Go to topPage: 1