Problème avec liste mltiligne en php
black-ice-50
Messages postés
13
Date d'inscription
Statut
Membre
Dernière intervention
-
pyschopathe Messages postés 1974 Date d'inscription Statut Membre Dernière intervention -
pyschopathe Messages postés 1974 Date d'inscription Statut Membre Dernière intervention -
Bonjour,
j'utilise le code ci dessous & php m'affiche une liste vide sachant que j'ai tester ma requette sur mysql est ça marche
<?php
if(isset($_POST['Submit'])&& isset($_POST['client'])){
$client=$_POST['client'];
$s=" SELECT * FROM livraison,commande where livraison.idLiv=commande.idLiv and commande.code_Client='".$client."'and livraison.id_etat_f= 0 ";
$x=mysql_query($s);
if($x)$m=1;
echo $x;
}
?>
<form id="form2" name="form2" method="post" action="">
<select name="lbl" size="9" id="select2">
<?php
while ($t = mysql_fetch_array($x)) {
?>
<option value="<?php echo $t['id_cmd']?>">
<?php echo $t['id_cmd']." "."l&h"; ?>
</option>
<?php
}
?>
</select>
merci d'avance
j'utilise le code ci dessous & php m'affiche une liste vide sachant que j'ai tester ma requette sur mysql est ça marche
<?php
if(isset($_POST['Submit'])&& isset($_POST['client'])){
$client=$_POST['client'];
$s=" SELECT * FROM livraison,commande where livraison.idLiv=commande.idLiv and commande.code_Client='".$client."'and livraison.id_etat_f= 0 ";
$x=mysql_query($s);
if($x)$m=1;
echo $x;
}
?>
<form id="form2" name="form2" method="post" action="">
<select name="lbl" size="9" id="select2">
<?php
while ($t = mysql_fetch_array($x)) {
?>
<option value="<?php echo $t['id_cmd']?>">
<?php echo $t['id_cmd']." "."l&h"; ?>
</option>
<?php
}
?>
</select>
merci d'avance
A voir également:
- Problème avec liste mltiligne en php
- Liste déroulante excel - Guide
- Liste déroulante en cascade - Guide
- Liste code ascii - Guide
- Easy php - Télécharger - Divers Web & Internet
- Site dangereux liste - Guide