4
thanks ghia, but im totally lost. am I supposed to get something like this:
global $xoopsDB;
$results = 'SELECT AVG( min_rate ) AS avg, COUNT( min_rate ) AS cnt FROM ' . $xoopsDB->prefix('xoops_user_profile') . ' WHERE min_rate IS NOT NULL';
while ($avg_rate = $xoopsDB->fetchArray($result)) {
$avg = $row['1'];
$cnt = $row['2'];
}
echo '$avg/$cnt';
does it make any sense? please correct if not
Mind anchors