Black Eagle Team Minishell
Path:
/
home
/
ccpsafy
/
www
/
private
/
vie_club
/
[
Home
]
File: vie_club_ajout_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']; } $req = "INSERT INTO vie_club (id, titre, texte, lien, visuel, date) VALUES ('', '$_POST[titre]', '$_POST[texte]', '$_POST[lien]', '$lefichier', '$_POST[date]')"; $rep = mysql_query($req,$con) or die(__LINE__.$req.$mysql.error()); header("Location: vie_club.php"); ?>
©
2020 Black Eagle Team