Bonjour à tous,
J'ai un form lié avec MySQL
Comment liées les trois input pour les Re-insérer dans la base.
<form method="post" enctype="text/plain">
Je vous remercie.
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 <?php $result = $sql->query("SELECT * FROM $sql_products"); while ($ligne = mysql_fetch_array($result)) { $productID= $ligne['productID']; $productPrice = $ligne['productPrice']; ?> <tr> <td align="center"><input type="text" name="price[]" value="<?php echo $productPrice ?>" /></td> <td align="center"><input type="text" name="quantite[]" value="" /></td> <td align="center"><input type="checkbox" name="productID[]" value="<?php echo $productID; ?>" /></td> </tr> <?php } ?> <input type="submit" value="print" /> </form>
Partager