<?php
	include 'inc/conx.php';
	
	$id = (trim($_POST['id']));

	
	$q = "DELETE FROM purchases WHERE id = '".$id."'";
	$r = $db->query($q);

	$q = "DELETE FROM stock WHERE unique_id = '".$id."'";
	$r = $db->query($q);

	die();
?>

