149,10 → 149,23 |
} |
|
private function mettreAJourBdd() { |
$requete = "SELECT nom_utilisateur FROM cel_images WHERE id_image = {$this->idImg} "; |
$resultats = $this->bdd->requeter($requete, Bdd::SQL_RETOUR_COLONNE); |
print_r($resultats); |
echo "\n"; |
$idImg = $this->bdd->proteger($this->idImg); |
$exif = $this->bdd->proteger($this->exif); |
$iptc = $this->bdd->proteger($this->iptc); |
$xmp = $this->bdd->proteger($this->xmp); |
$makerNotes = $this->bdd->proteger($this->makerNotes); |
$autres = $this->bdd->proteger($this->metaAutres); |
|
$requete = 'UPDATE cel_images SET '. |
" meta_exif = $exif, ". |
" meta_iptc = $iptc, ". |
" meta_xmp = $xmp, ". |
" meta_makernote = $makerNotes, ". |
" meta_autres = $autres ". |
"WHERE id_image = $idImg "; |
$resultat = $this->bdd->executer($requete); |
|
echo "Mise à jour image '{$this->idImg}' : $resultat\n"; |
} |
} |
?> |