Black Eagle Team Minishell
Path:
/
home
/
c
/
c
/
p
/
ccpsafy
/
www.old
/
private
/
expos
/
[
Home
]
File: expos_modif_x.php
<?php include ("../../inc/enligne_param.inc.php"); include ("../../inc/gere_session.inc.php"); // AJOUT DE LA DATE DE MODIF DANS LA BASE $req = "update date set date_expo='$_POST[date_expo]', heure_expo='$_POST[heure_expo]' "; $rep = mysql_query($req,$con) or die(__LINE__.$req.$mysql.error()); if(is_uploaded_file($_FILES['visuel']['tmp_name'])){ $chemin = "../../pict/accroche/".$_FILES['visuel']['name']; move_uploaded_file($_FILES['visuel']['tmp_name'],$chemin); $LeFichier = $_FILES['visuel']['name']; $Crit = ", visuel = '$LeFichier'"; } else{ $Crit = ""; } $req = "UPDATE expos SET jourdebut = '$_POST[jourdebut]', moisdebut = '$_POST[moisdebut]', andebut = '$_POST[andebut]', jourfin = '$_POST[jourfin]', moisfin = '$_POST[moisfin]', anfin = '$_POST[anfin]', auteur = '$_POST[auteur]', titre = '$_POST[titre]', lieu = '$_POST[lieu]', tel = '$_POST[tel]', adresse = '$_POST[adresse]', lien = '$_POST[lien]', texte = '$_POST[texte]' $Crit WHERE id = $_POST[ExpoModif]"; $rep = mysql_query($req, $con) or die(__line__.$req.mysql_error()); header("Location: expos.php"); ?>
©
2020 Black Eagle Team