Hello I am stuck in this step $result = mysql_query("SELECT id FROM tblmarks WHERE reg_no = '$reg_no' AND year = '$year' AND sem = '$sem'"); This is not working for me. I want to take the value of id , from the table tblmarks with these conditions reg_no should be eqal to $reg_no year = $year sem = $sem I dont know why this syntax is not working ? Anybody can help me ? Thanks
But it is still not working ? $result = mysql_query("SELECT id FROM tblmarks WHERE reg_no = '$reg_no' AND year='$year' AND branch='$branch'");
Ok, I found the problem, It was with the mysql table. The year value was not there. When I added it , the problem solved.