I need some help on how to code my php script so that it will find the average of six columns in mysql database and store the new results in a new column inside the mysql database.
For example
the MSQL Database has the following columns
Name EXAM1 EXAM2 EXAM3 EXAM4 EXAM5
Then the following records are entered into the dataabse
Name EXAM1 EXAM2 EXAM3 EXAM4 EXAM5
Eric 10 20 10 20 10
Then the PHP script will generate this result
Name EXAM1 EXAM2 EXAM3 EXAM4 EXAM5 AVERAGE
Eric 10 20 10 20 10 14
So that in the MYSQL database, the records will show just like the PHP script results.
Any help?
Thanks.