MySQL Forums
Forum List  »  PHP

Re: num_rows not working when used SUM()
Posted by: Peter Brawley
Date: February 28, 2015 02:00AM

> display the number of rows where items.clientid = '$clientid' and want to SUM(prices.priceid)

Add count(*) to the Select expression list.

Options: ReplyQuote


Subject
Written By
Posted
Re: num_rows not working when used SUM()
February 28, 2015 02:00AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.