<?php
 session_start
();
 if (
session_is_registered("valid_user"))
 {
include(
"../include/FunctionDB.php");
ConnectDB();
$Date_note $_POST[mYear]."-".$_POST[mMonth]."-".$_POST[mDate];
$sql " UPDATE finance4_tb SET  Year_budget='$Year_budget',Date_note='$Date_note',Month='$Month',Cost1='$Cost1',Cost2='$Cost2',Cost3='$Cost3',Cost4='$Cost4',Cost5='$Cost5',Cost6='$Cost6' WHERE code ='$code' ";
$result mysql_query($sql) or die("Update Error $sql".mysql_error());
header("Location:EditFinaList.php");            
CloseDB();
?>
<?php 
    
}
else
{
       echo
"<meta http-equiv=\"refresh\" content=\"3;URL=../FrmLogin.php\">\n";
       echo
"Please Login ";
}
?>