?
2010-04-23 05:13:17 UTC
$fname = $_POST['fname'];
$surname = $_POST['surname'];
$student_number = $_POST['student_number'];
$exam = $_POST['exam'];
$project = $_POST['project'];
$participation = $_POST['participation'];
$totalmark = $exam + $project + $participation;
$sqlquery = "INSERT INTO details VALUES ('$fname', '$surname', '$student_number', '$exam', '$project', '$participation')";
$results = mysql_query($sqlquery);
Im not sure what to do next. I thought I could do the following:
if
max $totalmark
{
echo "Highest grade is" . $totalmark;
}
but that wouldnt work as it wont give highest grade from all the values in the database.
Any ideas??? thanks.