<?php
include '../functions.php';

if (isset($_GET['id']) == true) {
	$id = $_GET['id'];

	$sql = $conn->query("UPDATE tax_codes SET stat = 'For Sale' ");
	if (isset($sql) == true) {
		echo "<script>alert('Tx Code has been updated Successfully')</script>";
		echo "<script>window.open('active-tax-codes', '_self')</script>";
	}else{
		echo "<script>alert('Failed to update Tax Code')</script>";
		echo "<script>window.open('active-tax-codes', '_self')</script>";
	}
}
?>