<?php include('partie1_admin.php');?>
<div id="coverer" align="center">
<h2><img src="img/fleche.gif" style="margin-bottom:-10px;" height="40" width="40">&nbsp;Galerie Photos</h2>
<a href="liste_galerie.php"><p class="bouton_design" style="display:inline-block; color:#fff;">Retour</p></a>

<?php
include('connexion_mysql.php');
if (isset($_GET['modifier_photo'])) // Si on demande de modifier une news

{
$retourb = 'SELECT * FROM galerie WHERE id=\'' .
$_GET['modifier_photo'] . '\'';
$res = $conn->query($retourb);
$donnees = mysqli_fetch_array($res);

$photo = $donnees['photo'];
$description = $donnees['description'];
$id_news = $_GET['modifier_photo']; // Cette variable va servir pour se souvenir que c'est une modification.




}



?>
<form action="liste_galerie.php" method="post" enctype="multipart/form-data">
<p align="center"><span style="font-family:'Comic Sans MS', cursive";><?php echo $description; ?></span><br /><br /><img style="width:200px; height:180px;" src="../uploads/<?php echo $photo ?>" /></p>
<p>
image :&nbsp;
<input type="file" name="image" /><br />
</p>
<input type="hidden" name="id_news" value="<?php echo $id_news;
?>" />
<input type="submit" value="Envoyer" name="modifier_photo" />
</p>
</form>




<?php include('partie3_admin.php'); ?>