bonjour voilà j'affiche tous les éléments d'une table avec à chaque enregistrement une checkbox , je veux que lorsque je clique sur un bouton tous les enregistrements s'affiche et que je puisse les modifier

voici le début du code

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
 
<?php
include( "config_server.php" );
$sql = "SELECT * from types";
$req = @ mysql_query ( $sql ) or die ( 'Erreur requête !!!' );  
while ( $data = @ mysql_fetch_array ( $req )) {
?>
 
<tr>
<td width="5"><input name="checkbox_name[]" type="checkbox" value="<?php echo $data[id] ?>" /></td>
<td width="30" style=" border:1px solid #000000; text-align:left;font-family:Arial, Helvetica, sans-serif; font-size:12px; font-weight:bold; background-color:#FFFFFF; text-align:right;"><a href="details_biens.php?id=<?php echo $data[id] ?>"><?php echo $data[id] ?></a></td>
<td width="3">&nbsp;</td>
<td width="381" style=" border:1px solid #000000;  text-align:left; font-family:Arial, Helvetica, sans-serif; font-size:12px; font-weight:bold; background-color:#FFFFFF; "><?php echo $data[type] ?></td>
<td width="381" style=" border:1px solid #000000; text-align:left; ;font-family:Arial, Helvetica, sans-serif; font-size:12px; font-weight:bold; background-color:#FFFFFF; "><?php echo $data[gamme] ?></td>
 
 
 
</tr>
 
<?php
} 
?>
</table>
<br /><br />
<input name="boutom_modif_selec" type="submit" value="Modifier la séléction"/>
</form>
<?php
 
if (!isset($_POST['bouton_modif_selec']) && isset($_POST['checkbox_name']))
{
foreach($_POST['checkboxname']) 
{ 
....
}
?>
voilà là je suis coincé on m'as dit d'employer foreach mais comment

merci pour votre aide