Je n'arrive pas à réaliser une suppression multiple de ligne
<td width="7%" class="noir">
<a href="javascript:BRB_PHP_DelWithCon('modification2.php','id',<?php echo $datas['id']; ?>,'Vous allez modifier une fiche Matériels ? ');"><img name="supprimer" src="images/fleche10.png" width="20" height="20" alt="" /></a>
<a href="javascript:BRB_PHP_DelWithCon('Fonction_php/pointage-retour.php','id',<?php echo $datas['id']; ?>,'Voulez-vous saisir le pointage du retour de ce Matériel ? ');"><img name="Retour Matériels" src="images/retour.png" width="20" height="20" alt="" /></a>
<td style="border: none; width: 5em"><input name="champ[]" type="checkbox" value="<?php echo $datas['id']; ?>"/><!-- cases à cocher pour supprimer le message-->
</td>
<?php
echo '</tr>';
}
echo '</tbody>';
echo '<tfoot><tr><th colspan="11"><button class="btnui" id="create-user">Ajouter une Fiche Matériel</button>
<form method="POST"><a href="delete.php"></a>
<input name type="submit" class="submitCom"" value="Supprimer la sélection"></a>
</form></th></tr></tfoot>';
echo '</table>';
MON FICHIER DELETE
<?php
if (isset($_POST['champ'])) {
for ($i=0;$i<sizeof($_POST['champ']);$i++) {
$champ[$i] = $_POST['champ'][$i];
$numero_article = $_POST['champ'][$i];
mysql_connect("localhost", "****", "****");
mysql_select_db("michelte_Gestion_Materiels");
$query2 = mysql_query("DELETE * FROM materiels WHERE Id = '$numero_article'");
$result_donnees2=mysql_fetch_assoc($query2);
}
}
?>
Merci pour votre aide