Black Eagle Team Minishell
Path:
/
home
/
c
/
c
/
p
/
ccpsafy
/
www
/
private
/
vie_club
/
[
Home
]
File: vie_club_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='$_POST[date]', heure='$_POST[heure]' "; $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 vie_club SET titre = '$_POST[titre]', texte = '$_POST[texte]', lien = '$_POST[lien]', date = '$_POST[date]' $Crit WHERE id = $_POST[LeID]"; $rep = mysql_query($req, $con) or die(__line__.$req.mysql_error()); header("Location: vie_club.php"); ?>
©
2020 Black Eagle Team