1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
| if(isset($_POST['modifier']))
{
//récupération des valeurs des champs:
//nomfICHIERsOURCE
$NomFichierSource = $_POST["NomFichierSource"] ;
//AUTRES dans la base header_tei
$Statut_corpus = $_POST["Statut_corpus"] ;
$Ancien_id = $_POST["Ancien_id"] ;
$Responsable_corpus1 = $_POST["Responsable_corpus1"] ;
$Responsable_corpus2 = $_POST["Responsable_corpus2"] ;
//ect...
$test = mysql_query("select * from header_tei where NomFichierSource='".mysql_real_escape_string($NomFichierSource)."' and Statut_corpus='".mysql_real_escape_string($StatutCorpus)."'");
if($test){
//requete 1: table header_tei
$sql = "UPDATE header_tei
SET
Statut_corpus = '$Statut_corpus',
Ancien_id = '$Ancien_id',
Responsable_corpus1 = '$Responsable_corpus1',
Responsable_corpus2 = '$Responsable_corpus2'
//Ect...
WHERE id_fiche = '$id' " ;
}
else{
/// insert a faire
}
} |
Partager