Suppression enregistrement

inssetman Messages postés 11 Date d'inscription lundi 12 janvier 2004 Statut Membre Dernière intervention 18 mars 2004 - 27 févr. 2004 à 11:14
inssetman Messages postés 11 Date d'inscription lundi 12 janvier 2004 Statut Membre Dernière intervention 18 mars 2004 - 1 mars 2004 à 14:42
voila mon pb. j'ai crée un tableau qui affiche ce que je veux qu'il affiche (hihih) et devant chaque enregistrement affiché, apparait un bouton radio. et j'aimerais que quans je clique sur le bouton de mon formulaire, ca supprime l'enregistrement qui a été selectionnez par le radio bouton ! mais comment faire ?? snifff

$query = "select * from tbl_produit where intitule_commercial='$intitule_commercial'";

$req = mysql_query($query);

echo "<Form method='POST' action='suppression_produit.php'>";

while($data = mysql_fetch_array($req))

{

echo "<tr bgcolor='white' height='15'>";

echo "<td height='15'></td>";

echo "<td height='15'>".$data['intitule_commercial']."</td>";

echo "<td height='15'>".$data['intitule_commun']."</td>";

echo "<td height='15'>".$data['intitule_nature']."</td>";

echo "<td height='15'>".$data['intitule_gamme1']."</td>";

echo "<td height='15'>".$data['intitule_gamme2']."</td>";

}

echo "</table>";

echo "
";

echo "";

echo "</form>";

merci pour votre aide ! le code serait à placer dans le fichier suppression_produit.php

1 réponse

inssetman Messages postés 11 Date d'inscription lundi 12 janvier 2004 Statut Membre Dernière intervention 18 mars 2004
1 mars 2004 à 14:42
euhh si je met un truc ca up mon pb ??, car je l'ai tjrs pas résolu !! snifffffffffffff meric bcp :)
0
Rejoignez-nous