Insertion de 3 Input texte liées
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">
Code:
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> |
Je vous remercie.