<?php
	session_start();

	if(!isset($_SESSION['tulsilogin']))
	{
		header('Location: index.php');
		return;
	}

	include("connect.php");
	
	$iadid=(int)mysqli_real_escape_string($conn,$_GET['id']);
	
	$imid=$_GET['p2'];
	
	$query="update  res_inquirydocs_detail set iddocverify=1 where iddid=$iadid";
	$result= mysqli_query($conn, $query) or die("Error");
		
	$_SESSION['msg'] = "Document Verified successfully";
	header("Location: inquirydetail.php?id=$imid&tab=student_document");
?>