This is my code and i want to save the $result
to the database named grade, column name: rating. Help me please. I tried inserting it to using these code:
insert into grade(subject_id,rating)VALUES('$subject_id','$row5')
but nothings happen
<?php
$result = mysql_query("SELECT CEILING((($prelim + $midterm + $final ) / 3.0)*100)/100 FROM grade");
$row5 = mysql_fetch_array($result)
?>