".mysqli_error($con); $_SESSION['ret_link']="add_type_frm.php"; header("location:error.php?var=2"); return false; } if(mysqli_query($con,$sql_action)){ $_SESSION['rezult_msg']="Type successfully added/updated to the database."; $link="add_type_frm.php"; echo $_SESSION['rezult_msg']; header("location:$link?var=1"); return false; } else{ $_SESSION['rezult_msg']="The value was not added/updated to the database. Please try again.
".mysqli_error($con); $_SESSION['ret_link']="add_type_frm.php"; header("location:error.php?var=2"); return false; } ?>