
<?PHP

# STOP HERE 
#################################################################### 
# THIS CODE IS USED TO CONNECT TO THE MYSQL DATABASE 
include"config.php";
$expense_title=$_POST['expense_title'];
$expense_amount=$_POST['expense_amount'];
$e_pay_method=$_POST['e_pay_method'];
$expense_account=$_POST['expense_account'];
$expense_issed_on=$_POST['expense_issed_on'];
$expense_description=$_POST['expense_description'];


//$password=$_POST['password'];
$hidden=$_POST['hidden'];
$query="update expense set expense_title='$expense_title', expense_amount='$expense_amount', e_pay_method='$e_pay_method', expense_account='$expense_account', expense_issed_on='$expense_issed_on', expense_description='$expense_description' where expense_id='$hidden'";
$link=mysqli_query($conn,$query) or die('Error, failed to select records'); 

header("location: expense_list.php");
?>

