$id = $_REQUEST[\'id\']; $Section = $_REQUEST[\'section\']; $Subject = $_REQUEST[\'subject\']; $type = $_REQUEST[\'type\']; $Start_date1 = isset($_REQUEST[\'startTxt
You are not setting the $sql variable and calling mysql_query() twice.