Recuperer les donnees d'un enregistrement
nahac83
Messages postés
16
Date d'inscription
Statut
Membre
Dernière intervention
-
nahac83 Messages postés 16 Date d'inscription Statut Membre Dernière intervention -
nahac83 Messages postés 16 Date d'inscription Statut Membre Dernière intervention -
Bonjour,
Voici le tableau que je remplis:
<form name="form1" action="valider.php" method="post">
<table width="1209" height="54" border="1">
<tr>
<td width="185"><strong>Identifiant</strong></td>
<td width="487"><strong>nom</strong></td>
<td width="126"><strong>prenom</strong></td>
<td width="135"><strong>Adresse </strong></td>
</tr>
</table>
<table width="1208" border="1">
<tr>
<td width="186"> <label></label> <strong><spacer /><input type="text" name="id_produit" value="<?php echo $data['ref'];?>" /></strong>
<br/>
<td width="127" height="35"><strong><input type="text" name="Quantite_vendue" value="<?php $qtite=$data['Quantite'];?>"/>strong></td>
</form>
Je ne connait pas le nombre de lignes à l'avance les celulles du tableau s'incrementent et
La deuxieme page:
<?php
$id_produit=$_POST['id_produit'];
$Quantite_vendue=$_POST['Quantite_vendue'];
$connect=mysql_connect("localhost","root","");
mysql_select_db("gestion_stock",$connect);
$sql=mysql_query("INSERT INTO vente (id_produit,Quantite_vendue) VALUES ('$id_produit','$Quantite_vendue')") or die ("produit non inseré");
?>
Et ça n'insere que la derniere donnee à la base de données.
Pouvez vous m'orienter au m'aider
Merci
Voici le tableau que je remplis:
<form name="form1" action="valider.php" method="post">
<table width="1209" height="54" border="1">
<tr>
<td width="185"><strong>Identifiant</strong></td>
<td width="487"><strong>nom</strong></td>
<td width="126"><strong>prenom</strong></td>
<td width="135"><strong>Adresse </strong></td>
</tr>
</table>
<table width="1208" border="1">
<tr>
<td width="186"> <label></label> <strong><spacer /><input type="text" name="id_produit" value="<?php echo $data['ref'];?>" /></strong>
<br/>
<td width="127" height="35"><strong><input type="text" name="Quantite_vendue" value="<?php $qtite=$data['Quantite'];?>"/>strong></td>
</form>
Je ne connait pas le nombre de lignes à l'avance les celulles du tableau s'incrementent et
La deuxieme page:
<?php
$id_produit=$_POST['id_produit'];
$Quantite_vendue=$_POST['Quantite_vendue'];
$connect=mysql_connect("localhost","root","");
mysql_select_db("gestion_stock",$connect);
$sql=mysql_query("INSERT INTO vente (id_produit,Quantite_vendue) VALUES ('$id_produit','$Quantite_vendue')") or die ("produit non inseré");
?>
Et ça n'insere que la derniere donnee à la base de données.
Pouvez vous m'orienter au m'aider
Merci
A voir également:
- Recuperer les donnees d'un enregistrement
- Comment recuperer un message supprimé sur whatsapp - Guide
- Logiciel de récupération de données - Guide
- Récupérer compte yahoo sans numéro de téléphone - Guide
- Récupérer données clé usb non reconnue - Guide
- Comment récupérer un compte facebook piraté - Guide