1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
|
<?php
include '../../../Include/connection.php' ;
echo '<script src="../../../JS/divInfo.js"></script>' ;
if(isset($_POST['annonce_update'])) {
$req = $bdd->prepare('UPDATE annonces SET annonces_titre='. $donnees['annonces_titre']. ' WHERE annonces_id = ?') ;
$req->execute(array($_POST['announce_id'])) ;
// annonces_contenu='".addslashes($_POST['annonces_contenu'])."' annonces_date='".addslashes($_POST['annonces_date'])."' annonces_file='".addslashes($_POST['annonces_file'])."' annonces_file2='".addslashes($_POST['annonces_file2'])."' annonces_file3='".addslashes($_POST['annonces_file3'])."' annonces_file4='".addslashes($_POST['annonces_file4'])."' annonces_file5='".addslashes($_POST['annonces_file5'])."'
?> <script type='text/javascript'>location.replace("../../../Atelier/accueil.php")</script> <?php
}
else {
echo 'Echec. Contactez Fabien qui ne sait pas coder un site.' ;
}
$req->closeCursor() ;
?> |