I'm just messin' around and I'm trying to make a page that calculates my gpa. I have my my grade and number of hours per class in a data base. How can I preform operations on the values?
I'm really not sure how to set this up. I know I need to find the average of hours times grade. Is there anything thing like:
Code: Select all
average($row['grade'] * $row['hour'])Thanks.
Tim Brown