I am not getting your point. Your language is not readable format. Well if you want to sum of obtained marks column data using PHP, then follow this code. It will help you with the sum of all complete columns.
<?php
$cser=mysqli_connect("localhost","root","","test") or die("connection failed:".mysqli_error());
$sql_qry="SELECT SUM(pprice) AS count FROM crud2";
$duration=mysqli_query($cser,$sql_qry);
while($record = $duration->fetch_array()){
$total = $record['count'];
}
echo $total
?>
1. Change MySQL database name (test to your db name ) or do not add this line if you are already added the connection config file.
2. If you want to sum then, change the crud2 table name to your created table name.
3. If you want to sum of obtained marks, change pprice to your obtained marks column name.
I hope, it will you. If the problem will occur, then comment here.