toujours pas de message d'erreur mais le clic sur le bouton ne déclenche rien!
<?php
$req = mysql_connect("odin","root","*********") or die(mysql_error());
//séléction de la BD
if (isset($_POST['bouton'])){
foreach($_POST['bouton'] AS $id=>$valeur){
echo 'Le bouton ID '.$id.' a été cliqué';
}
}
$req = mysql_select_db("gii");
$sql = "SELECT Id, Type, Lieux, Date_signalement,Commentaire_signalement FROM incidents"; ?>
<table width="80%" border="0">
<tr bgcolor="#0000CC">
<th width="10%"><span class="Style1">Id</span></th>
<th width="20%"><span class="Style1">Type</span></th>
<th width="30%"><span class="Style1">Date</span></th>
<th width="22px"><span class="Style1">Lieu</span></th>
<th width="17"><span class="Style1">Etat</span></th>
<th width="13"><span class="Style1">Par</span></th>
</tr>
</table>
<?php
$resultSet = mysql_query($sql); // exécution de la requête
echo '<table width="80%" >' ; // on ouvre le tableau
while ($row = mysql_fetch_array($resultSet)) { // on boucle sur le résultat de la requête en mettant chaque ligne dans $row
?>
<tr>
<td width="10%"><?php echo $row['Id']?></td>
<td width="20%"><?php echo $row['Type']?></td>
<td width="30%"><?php echo $row['Date_signalement']?></td>
<td width="15%"><?php echo $row['Lieux']?></td>
<td width="20%"><?php echo $row['Signalé_par]?></td>
<td><form id="form1" name="form1" method="post" action=""><input type="submit" name='bouton[".$row['Id']."]' value= Détail / />
</form>
</td>
</tr>
<?php } // on affiche ainsi le contenu des différents champs
echo '</table>'; // on ferme le tableau
?>
je pense pas avoir fait d'erreur en rajoutant mes balises form...j'ai un peu de mal la! je nage...
enfin nan je coule