<?php
require('../config/dbcon.php');
if(isset($_POST['delpost'])){	
	$partno=$_POST['partno'];
	$delres = mysqli_query($connect,"delete from invtemp_mst where partno='".$partno."'") or die(mysqli_error());
	if($delres==true){
		echo "Deleted";
	}else{
		echo "Not Deleted";
	}
}
?>