Jump to content

[SOLVED] count query


techker

Recommended Posts

Hey guys!!

 

i have a quick question.i have a database that holds clients info

 

name..number..payment method..

 

i need to count how many clients payed by visa

 

so the tables name is new_members

 

the row is called mode

 

i got up to here but it always shows 0

 

SELECT COUNT( `mode` ) AS TotalNumber, SUM( `mode` ) AS TotalPrice FROM `new_members` WHERE `mode`= CHEQUE

<?php echo $row3['TotalPrice'] ?>

[code]

i used a query from another page in my script..

Link to comment
https://forums.phpfreaks.com/topic/172632-solved-count-query/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.