I just need to take the student's average data is in a MYSQL database the page is made in php, how could you average the cells (grades) in an average cell? in this code as I am running the average. But I do not get anything out
<B>PROMEDIO:
<input type='text' name='promedio' value="<?php echo @$promedio->promedio?>">
<br>
<?
@$gramatica = $_POST['gramatica'];
@$matematicas = $_POST['matematicas'];
@$historia = $_POST['historia'];
@$promedio = ($gramatica + $matematicas + $historia)/3;
?>