<?php
 $queryDeleteImage = "DELETE FROM image WHERE `codeTheme`='$codeTheme' AND nom='$NomImageAEffacer' AND prive='$priv'"; $resultDeleteImage = mysql_query ($queryDeleteImage) or die ("La requête de suppression des images du theme a échoué.");  $queryTheme = "select distinct repertoire from theme where codeTheme='$codeTheme' "; $resultTheme = mysql_query ($queryTheme) or die ("La requête de sélection des repertoires a échoué"); $lineTheme = mysql_fetch_row($resultTheme); $_rep = $lineTheme[0]; /* Free resultset */ mysql_free_result($resultTheme);  $queryDeleteStats = "DELETE FROM statclick WHERE `repertoire`='$_rep' AND nom='$NomImageAEffacer'"; $resultDeleteStats = mysql_query ($queryDeleteStats) or die ("La requête de suppression des stats des images du theme a échoué.");   ?> 