<?php
session_start();

include 'dbc.php';

$userid=$_SESSION['userid'];

$id=$_REQUEST["id"];

			$sql = "update invoice set 
status='Close' where id='$id' and user_id='$userid'";
$conn->query($sql);

		
	
	header("location:Open_Invoice.php");

		
// do the update and print out some info just to provide some visual feedback





?>
