I entered this code into my file:
$mySum=array_sum("$testg1" , "$testg2" , "$testg3" , "$testg4" , "$testg5" , "$testg6");
$myCount=array_count_values("$testg1" , "$testg2" , "$testg3" , "$testg4" , "$testg5" , "$testg6");
$myGrade=($mySum/$myCount);
echo "$myGrade";
and the page returned this:
Warning: Wrong parameter count for array_sum() in c:\apache\htdocs\grade.php on line 8
Warning: Wrong parameter count for array_count_values() in c:\apache\htdocs\grade.php on line 9
Warning: Division by zero in c:\apache\htdocs\grade.php on line 10
Line 8 is the $mySum= line, line 9 is the $myCount= line, and line 10 is the $myGrade= line.
I really have tried most of the things in my knowledge to fix this, and none work.