php - Summary of two columns(Weighted Mean)--jqGrid -


i need calculate weighted mean of 2 columns i.e.sum(col1*col2)/sum(col2) in jqgrid----i'm using jqsuite php trirand.

i able take 2 columns , find sum of product

    psuedocol=>array(col1*col2+>"sum") 

psuedocol stores product of 2 columns rowwise

i don't know how access sum in psuedocol generate weighted mean


Comments

Popular posts from this blog

javascript - Bootstrap Popover: iOS Safari strange behaviour -

Website Login Issue developed in magento -

Can the constants be defined inside a model file of a framework in PHP? -