<?php
    
include("../include/FunctionDB.php");
    
ConnectDB();
    
$Ex_article htmlspecialchars(trim($_POST[Ex_article]));
     
// code_mag Magazine_name Magazine_type Ex_article Author Vol Year Month                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          
    
$strSQL="UPDATE magazine_tb SET Magazine_name='$Magazine_name',Magazine_type='$Magazine_type',Ex_article='$Ex_article',Author='$Author',Vol='$Vol',Year='$Year',Month='$Month' WHERE code_mag='$code_mag'";
    
$result  mysql_query($strSQL) or die("Update Error $result".mysql_error());
    
header("Location:EditMagList.php");                
        
CloseDB();
?>