You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

49 lines
1.3 KiB

<?php
session_start();
@include '../cgi-bin/conn.conn';
@include '../cgi-bin/functions.inc';
@include '../cgi-bin/params.inc';
$GLOBALS['conn'];
$conn=@mysqli_connect($DATAhst,$DATAusr,$DATApwd,$DATAdtb)or die("CONNECTION ERROR");
mysqli_set_charset($conn, "utf8");
?>
<!DOCTYPE html>
<html>
<head>
<title>Ordine dei Farmacisti della Provincia di Salerno</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<base href="<?php echo $BASE_URL;?>/">
<link href="<?php echo $BASE_URL;?>/css/styles.css" rel="stylesheet" type="text/css"/>
<link href='https://fonts.googleapis.com/css?family=Roboto' rel='stylesheet' type='text/css'>
</head>
<body>
<div class="row no-gutters py-4">
<?php
if($_GET['delid']){
$_SESSION['AUTH']['newsletter'] = $_GET['newsletter'];
$q=mysqli_query($conn, "UPDATE board SET
newsletter=".$_GET['newsletter']."
WHERE id='".$_SESSION['AUTH']['id']."'
");
echo "<div class=\"col-10 text-center mx-auto\">".
"<p><i class=\"fa fa-check-circle font-alert p-4\"></i></p>".
"<b>Iscrizione alla newsletter modificata correttamente.</b><br>".
"</div>";
}
?>
</div>
</body>
</html>