Bonjour a tous !

Après de multiple problème avec mon affichage de tableau qui est maintenant résolu, impossible de trouver le moyen de supprimer un champ grace a une icône supprimer. J'explique ^^

J'ai dans ma base une table nommé formtest1, dedans son regrouper des information banal ( nom prenom ) etc ...

J'affiche mon tableau sur une page, avec sa
Code : Sélectionner tout - Visualiser dans une fenêtre à part
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
33
34
35
36
37
38
<?
$mabasededonnee="karaexpo";
$connection = mysql_connect("****-1","******","******");
if ( ! $connection )
die ("connection impossible");
mysql_select_db('karaexpo') or die ("pas de connection");
 
// requête SELECT
$requete = "SELECT id,nomcrea,nom,prenom,adresse,responsable,cp,ville,pays,tel,fax,site,mail,visite,descritpif,types,exposer,url_image1,url_image2,url_image3,url_image4,url_image5 FROM formtest1 ORDER BY id";
$envoi = mysql_query($requete);
 
// début du tableau ( hors boucle )
echo "<table width=\"360\" border=\"0\" align=\"left\" cellpadding=\"0\" cellspacing=\"4\"> \n";
$_GET['id'];
 
// début de la boucle
echo "Les Inscrits Sont :";
while($tableau = mysql_fetch_array($envoi)) {
echo "<tr> \n";
echo "<td width=\"258\" align=\"left\" valign=\"top\" bgcolor=\"#e8eff6\"><a href=\"delete.php\"><img src=\"../content_fr/image/croix_rouge.gif\" border=\"0\" width=\"18\" height=\"15\" /></a></td> \n";
echo "<td width=\"258\" align=\"left\" valign=\"top\" bgcolor=\"#e8eff6\">".$tableau["id"]=$id."</td> \n";
echo "<td width=\"258\" align=\"left\" valign=\"top\" bgcolor=\"#e8eff6\">".$tableau["nom"]."</td> \n";
echo "<td width=\"258\" align=\"left\" valign=\"top\" bgcolor=\"#e8eff6\">".$tableau["prenom"]."</td> \n";
echo "<td width=\"258\" align=\"left\" valign=\"top\" bgcolor=\"#e8eff6\">".$tableau["tel"]."</td> \n";
echo "<td width=\"258\" align=\"left\" valign=\"top\" bgcolor=\"#e8eff6\">".$tableau["mail"]."</td> \n";
echo "<td width=\"258\" align=\"left\" valign=\"top\" bgcolor=\"#e8eff6\">".$tableau["visite"]."</td> \n";
echo "<td width=\"258\" align=\"left\" valign=\"top\" bgcolor=\"#e8eff6\">".$tableau["descriptif"]."</td> \n";
echo "<td width=\"265\" align=\"left\" valign=\"top\" bgcolor=\"#e8eff6\"><a href=\"http://www.kara-expo.com/content_fr/".$tableau["url_image1"]."\">Photo 1</a></td> \n";
echo "<td width=\"265\" align=\"left\" valign=\"top\" bgcolor=\"#e8eff6\"><a href=\"http://www.kara-expo.com/content_fr/".$tableau["url_image2"]."\">Photo 2</a></td> \n";
echo "<td width=\"265\" align=\"left\" valign=\"top\" bgcolor=\"#e8eff6\"><a href=\"http://www.kara-expo.com/content_fr/".$tableau["url_image3"]."\">Photo 3</a></td> \n";
echo "<td width=\"265\" align=\"left\" valign=\"top\" bgcolor=\"#e8eff6\"><a href=\"http://www.kara-expo.com/content_fr/".$tableau["url_image4"]."\">CV</a></td> \n";
echo "<td width=\"265\" align=\"left\" valign=\"top\" bgcolor=\"#e8eff6\"><a href=\"http://www.kara-expo.com/content_fr/".$tableau["url_image5"]."\">Lettre</a></td> \n";
echo "</tr> \n";
}
 
// fin du tableau html ( hors boucle )
echo "</table> \n";
?>

Comme vous pouvez le voir jai ajouter un champ au début avec une icone supprimer, qui permettrai en principe de suprimer la ligne

Code : Sélectionner tout - Visualiser dans une fenêtre à part
echo "<td width=\"258\" align=\"left\" valign=\"top\" bgcolor=\"#e8eff6\"><a href=\"delete.php\"><img src=\"../content_fr/image/croix_rouge.gif\" border=\"0\" width=\"18\" height=\"15\" /></a></td> \n";
Mon fichier Déléte.php est coder ainsi :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
<?
// Connection a la bdd
$mabasededonnee="karaexpo";
$connection = mysql_connect("******-1","*******","*******");
if ( ! $connection )
die ("connection impossible");
mysql_select_db('karaexpo') or die ("pas de connection");
 
//Requête DELETE
$requete2 = "DELETE FROM formtest1  WHERE id="id"";
$envoi2 = mysql_query($requete2);
?>
Mon probléme est que je n'arrive pas a fair reconnaitre a mon script quel id suprimer, j'ésper que vous allez comprendre :s

Cordialemen
Wil