MySQL Forums
Forum List  »  PHP

Re: num_rows not working when used SUM()
Posted by: Onkar Shinde
Date: February 28, 2015 03:56AM

I think i got it.

$query = "SELECT items.itemid, count(items.itemid) AS mycount SUM(prices.priceid) AS PR FROM items 
JOIN prices ON items.itemid = prices.itemid
WHERE items.clientid = '$clientid'";


Thanks a ton for your help Lord Peter Brawley!

Options: ReplyQuote


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


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.