I am am trying to add grades for students and then display them back in a web browser, using php and mysql. I created a table which stores students marks, on this table there is a fields for mark e.g 89, grade e.g A and remark e.g Excellent:\[code\]Student Grade Remark------------------------- 1 89 Excellent\[/code\]On the form I place only one field for user to add student mark, this field is called mark, I need user to only add student mark to the db and the rest of work of calculating grade, and remark based on value of mark entered on the user's form should be done by scripts.Furthermore I have already written the codes which manage computation of marks, as seen below, my problem, is how can I easily populate students grades e.g A and remark e.g Excellent using this scripts.Above scripts works. So how can I add grades and remarks in the db using the above scripts.Any Idea Is appreciated!