I'm getting parse error in my code.
My code is:
$query="INSERT into tbl_result('result_uname','result_date','result_subject','result_rightans','result_wrongans','result_marks') values ('$uname','$curdate','$subject','10','10','$_SESSION['marks']')";
if(mysql_query($query))
{
header("Location: result.php");
?>
<script>alert("Your Answers Submitted...");</script>
<?php
}
else
{
?>
<script>alert('Error While Submitting...');</script>
<?php
}