Black Eagle Team Minishell
Path:
/
home
/
c
/
c
/
p
/
ccpsafy
/
www.old
/
private
/
pa
/
[
Home
]
File: pa_modif_x.php
<?php include ("../../inc/enligne_param.inc.php"); include ("../../inc/gere_session.inc.php"); 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_pa = '$LeFichier'"; } else{ $Crit = ""; } $req = "UPDATE petites_annonces SET def_pa = '$_POST[produit]', comment_pa = '$_POST[commentaires]', membre_pa = '$_POST[membre]', prix_pa = '$_POST[prix]', lien_pa = '$_POST[mail]' $Crit WHERE id_pa = $_POST[LeIDA]"; $rep = mysql_query($req, $con) or die(__line__.$req.mysql_error()); header("Location:pa.php"); ?>
©
2020 Black Eagle Team