<title>tempzone</title>
<?php
session_start();
$Username=$_SESSION['USERNAME'];
//$PHOTO_ADM=$_SESSION['PHOTO'];
?>


<?php
include("connexion.php");
?>

<?php

if($Username!=""){
	$info="SELECT * FROM adm_user WHERE username='$Username'";
	$USERNAME="";

	foreach($connexion->query($info) as $row){
		$USERNAME=$row['username'];
	}
	if($USERNAME==""){
		echo "<meta http-equiv='refresh' content='0; url=index.php'>";
	}
}
else{
	echo "<meta http-equiv='refresh' content='0; url=index.php'>";
}
?>


<?php

$inf=($_REQUEST['id']);
$result="DELETE FROM articles WHERE id_article='$inf'";
foreach($connexion->query ($result) as $row){};
echo "<script type=\"text/javascript\">alert (\"Succefull !\")</script>";
echo "<meta http-equiv='refresh' content='0; url=group.php?id='>";

	?>