Romanity
05-05-2008, 12:53 PM
Right... heres what I got so far
$mean = array( 2, 4, 6, 8 );
$mean = array_sum($mean);
$mean = $mean/4;
echo "$mean";
Which does give 5 as the answer :)
Problem is i cant remember how to get the array from the database :S
$mean = array( ALL DATABASE VALUES);
Is what I need.... whats the function??? :S
$mean = array( 2, 4, 6, 8 );
$mean = array_sum($mean);
$mean = $mean/4;
echo "$mean";
Which does give 5 as the answer :)
Problem is i cant remember how to get the array from the database :S
$mean = array( ALL DATABASE VALUES);
Is what I need.... whats the function??? :S