1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
|
<?php $requete = $bdd->prepare('
SELECT DISTINCT
client_societe,
CONCAT(client_societe, " ", client_ville) AS libelle
FROM client
WHERE client_contact = ?
ORDER BY `client_societe` ASC'
);
$requete->execute( array( $_SESSION['Contact_login'] ) );
$clients = $requete->fetchAll();
$requete->closeCursor(); ?>
<div class="form-group col-md-4"></div>
<div class="form-group col-md-4">
<select name="client_societe" id="client_societe" class="form-control" onchange="showUser(this.value)">
<?php foreach( $clients as $client ) { ?>
<option value="<?php echo $client['client_societe']; ?>"><?php echo $client['libelle']; ?> </option>
<?php } ?>
</select>
</div>
<div class="form-group col-md-4"></div><br />
<img src="../Assets/cont.png" class="img-rounded" alt="head" style="max-width: 40%;">
</div> |
Partager